
On 1/8/08, Stefan Roese sr@denx.de wrote:
On Tuesday 08 January 2008, Chetan Nanda wrote:
In that case there must be some threads that continuously check for pending requests from UART, ETHERNET or so ..
Threads? U-Boot is not an full blown OS. No threads are needed in this bootloader.
But I don't find any sort of threading inside u-boot code
U-Boot "sits" there and waits for some input from the console, or for an ethernet reply packet. This can be done using polling without any performance penalty.
Thanks, for explaining the things, But how can we wait for two events simultaneously (that is also under a single thread of execution)? Can you give me pointer to the code ?
Best regards, Stefan
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================