I tested calling as many uv_queue_work and it only executes at most 4
of them concurrently.
Is there a way to change this number?

Considering the small number of thread pool available,
I think it is not recommended to use sleep() even if you are inside a
thread pool,
because it will block that thread (and you are left with even fewer
available thread pool), right?

How does uv_timer implemented? (Does it uses a thread and block like sleep()?)


@Nikhil: why do you use sleep() in your fibonacci example?

https://github.com/nikhilm/uvbook/blob/master/code/queue-work/main.c


Felix Halim

-- 
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

Reply via email to