On Wed, Aug 1, 2012 at 12:44 AM, Felix Halim <[email protected]> wrote: > @Nikhil: why do you use sleep() in your fibonacci example? > > https://github.com/nikhilm/uvbook/blob/master/code/queue-work/main.c
Simply to force the threads to be scheduled a little differently so that the output reflects clearly that uv_queue_work does indeed use different threads. Since calculating Fib is CPU bound, they may execute sequentially otherwise, although nothing can be said about preemptive schedulers. Nikhil -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
