Re: Multiprocessing and y4mdenoise
Steven Boswell II <[email protected]> Tue, 26 May 2009 20:13:41 -0700 (PDT)
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
>> [1] Any comments on these two methods? > >remember that nanosleep() will sleep at least until the next >rescheduling takes place. On older Linuxes, that can be every 10 >Milliseconds, on newer ones, it's often every 1 Millisecond. But you >can't rely on sleeping less than 10 Milliseconds with that method. Actually, that's more what I wanted -- a "thread yield" function. Sleeping longer is fine as long as the thread enters the run queue and get scheduled along with all the other running processes. Given the way "SPU threads" work, the 50-microsecond delay is literally a busy wait. :-) Thanks for replying! I appreciate the info! -Steve ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Mjpeg-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mjpeg-developer