Skip to content

Different workers #8

Open
Open

Description

@InputNeuron

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

Activity

  1. flozz commented on Sep 18, 2018

    @flozz
    Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions