threadify icon indicating copy to clipboard operation
threadify copied to clipboard

Different workers

Open burtonator opened this issue 7 years ago • 1 comments

It should be possible to have different workers not just one thread.

I don't see a way to do that with the API.

This way you could have one worker for disk IO and another for network IO and another for CPU

burtonator avatar Sep 08 '18 15:09 burtonator

Hello,

Each call of a threadified function starts and run in its own worker (so if you call a function twice, you will have two web worker that run your function). The worker are terminated when the function returns.

Also, whet do you mean by "disk IO"? (Threadify works only in browsers so there is no direct disk access, and network IO are handled by the browser.)

flozz avatar Sep 18 '18 11:09 flozz