var cluster = require('cluster');
var http = require('http');
var numWorkers = 2;
if (cluster.isMaster) {
// Fork worker.
for (var i = 0; i < numWorkers; ++i) {
console.log('master: about to fork a worker');
cluster.fork();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type Stack struct { | |
top *Element | |
size int | |
} |
In your command-line run the following commands:
brew doctor
brew update