This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Fwd: Question about multi-thread programming with cyg_thread_delay() function]


This mail, sent privately, should go to the list instead...

Jifl


Hi Jonathan:
     Thank you for your answer for my question. I have some questions:
 
Q1.  I have tried to create two threads at the same priority and run at the same time. In each thread I call an delay function cyg_thread_delay(100), and each thread just run into cyg_thread_delay(100) and never wakes again. What's happenning?
 
 
Q2.  Should I initialize any interrupt or set up any clock first before I resume these two threads?
 
Q3.  If in multi-thread program should the cyg_thread_delay( ) function be called for other thread to be run? But if I using an low speed peripheral    equipment and not use cyg_thread_delay( ), could any other thread be run during communication with the low speed peripheral equipment ? ( In   PC it does like that for multi-thread programming)??
 
 
 
Thank you very much!
james



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]