mcdumdum
mcdumdum

Reputation: 51

Using web workers for multiple concurrent heavy calculations?

I want to do a multiple concurrent heavy calculations that have the same formula. Do I have to create multiple worker files for each or I just need one?

Upvotes: 2

Views: 207

Answers (1)

Bergi
Bergi

Reputation: 664599

No, you don't need multiple files. You can instantiate multiple workers from the same script file, and then send them different arguments.

Upvotes: 1

Related Questions