ã¡ãããã§ãã Node.jsã§CPUã³ã¢ããã«ã«ä½¿ã£ã¦è² è·ã®é«ãå¦çãã§ããããªã¨æã£ãã®ã§ãã£ã¦ã¿ã¾ããã cluster APIã使ã£ã¦æ¸ãã¦ãã¾ãã APIã®ä½¿ãæ¹ãæ£ãããã©ããã¯ãããã¾ããããloadSizeã大ããæ°åã«ããã¨CPUãã¡ã³ãã¬ã³ã¬ã³åãã®ã§æ¥½ããã§ãã import * as cluster from 'cluster' import { Subject } from 'rxjs/Rx' const numCPUs = require('os').cpus().length interface Message { pid: number value: number } function superPower(): Promise<number[]> { const queue$: Subject<number[]> = new Subject() let f
{{#tags}}- {{label}}
{{/tags}}