[En-Nut-Discussion] error of compiler
ZIP
zip357 at centrum.cz
Fri Sep 22 13:56:15 CEST 2006
Thanks Ole, i will read this. But for me now it shouldn't be the problem.
The thread starts with NutTcpAccept() .. so the loop isn't running and
it's waiting for an incomming connection. I do have there some
NutNetSleeps().
So I can't see why it should be blocking other threads.
I'm attaching the code of this thread...
best regards
Petr
> Hello,
>
>> I have some printf of debugging messages throughout the code.
>> The code works fine, but when I remove those printf .. it stops working.
>> It probably blocks somehow.. Even ping to the board doesn't work.
>
> Do you perhaps have an endless loop, where you don't give up the CPU?
>
> A printf could result in a thread switch, if it needs to wait for the
> UART to transmit the data, so you thread perhaps won't block the whole
> system. But if you remove the printf and don't use any other function
> that gives up the cpu, this would result in a blocked system.
>
> Remember: NutOS useses cooperative multitasking, not preemtive
> multitasking as you know it from Linux/Unix or Windows.
>
> Even if it's outdated, you should take a look into
> http://www.ethernut.de/pdf/entet100.pdf
>
> Best regards,
>
> Ole Reinhardt
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SIAcmd.c
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20060922/eef501aa/attachment.c>
More information about the En-Nut-Discussion
mailing list