On Thu, Oct 17, 2002 at 09:51:42AM +0300, Osman Ç?nar Eren wrote: > Hi, > > for my real time process question; > i have two threads with infinite loops; one which gets raw video from a > webcam, encodes it using MPEG1 and sends it to the network > the other ; receives the video from the remote side and displays it. > > As it is obvious, the first thread never stops working. And it i also > obvious that this is exactly a realtime application. > > So what do you recommend? should not i make these threads realtime > processes? > also what may change if i do use a realtime enhanced kernel, like timesys, > instead of the standard kernel? AFAIK, you just have to make them do blocking waiting for the data. When it blocks, scheduler will run something else for a timer tick. (Well, you would probably like it to wake up when there are at least n bytes available; now that would have to be done in kernel). Displaying video does not have to be real-time. It can skip frames if something else interferes and delays it too much. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/