Skip to content

A simple project for multiprocessing and multithreading

Notifications You must be signed in to change notification settings

younes-nb/ghokho

Repository files navigation

Ghokho Project

Install Dependencies

npm i

Run the program

Start the server

npm start server

Start the commander

npm start commander

Customize

You can change properties in utils.ts to customize the program.

export const port = 3000;
export const address = `tcp://127.0.0.1:${port}`;
export const directory = './transaction_files/';
export const workerPath = './src/worker.ts';
export const workerProcessesCount = 5;
export const fileCheckerThreadsCount = 5;
export const corruptionChance: number = 1 / 3;