This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: Timeslicing on arm


2008/9/1 Andrew Lunn <andrew@lunn.ch>:
> The only way thread2 gets to run is if thread1 is timesliced while it
> has the mutex released.....
This seems to be the case, i did not think of that cyg_io_write would
take a mutex, but it is actually quite resobnaly that it is so, making
writing to the uart threadsafe.
I made the timeslicing work by adding another line inside each loop
(diag_printf)

Thanks for the clear explanation.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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