MultiThread
Peter Dufault
dufault at hda.com
Mon Jul 30 11:24:50 UTC 2012
On Jul 29, 2012, at 14:32 , m.shahverdi wrote:
> I have a problem with multithreading in RTEMS. my application consists of two threads that should be executed concurrently but when second thread is made it doesn't run! in all of RTEMS thread samples one of the threads should wait or sleep to run the other thread but in my apps two threads exactly should be executed concurrently.
> so what should I do?
Are you talking about time-slicing the CPU so that the two threads appear to be executed concurrently on a single computing resource? That's an unusual requirement in a real-time system that I've never needed, but RTEMS apparently supports it:
http://rtems.org/onlinedocs/doc-current/share/rtems/html/c_user/c_user_123.html
If you're talking about real multi-processing on a multi-core processor then you'll need to research the state of the RTEMS multiprocessor support.
Peter
-----------------
Peter Dufault
HD Associates, Inc. Software and System Engineering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120730/18f9fca6/attachment-0001.html>
More information about the users
mailing list