GitXplorerGitXplorer
d

node-workers

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
bf6cdf4ea75f887ab5f629d8af99bd6e2aad3ae5

initial commit

ddaveschumaker committed 3 years ago

README

The README file for this repository.

Node Workers Example

This is a demo application that shows how to use worker threads in Node. I created this for my own curiosity, as I wanted to experiment with running a number of tasks in parallel using Node JS.

Usage

  1. Clone the project.
  2. Run npm start

Tips and Tricks

  • Change the number of active threads by modifying threadCount inside /src/server.js.
  • In worker.js, I created a method named iterate that handles / simulates the business logic of the worker thread. You can name this whatever you want.