1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/index.ts
Braun Patrik 6fb57a7b0a Implementing cluster based threading
removing threads dependency
2017-07-04 10:24:20 +02:00

11 lines
191 B
TypeScript

import * as cluster from "cluster";
import {Worker} from "./model/threading/Worker";
import {Server} from "./server";
if (cluster.isMaster) {
new Server();
} else {
Worker.process();
}