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
var fork = require('child_process').fork; | |
var spawn = require('child_process').spawn; | |
for (var i = 0; i < 5; i++) { | |
fork("watch.js"); | |
// var ls = spawn("node", ["watch.js"]); | |
// ls.stdout.on('data', function(data) { | |
// process.stdout.write(data.toString()); | |
// }); |
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
var Car = function() { | |
this.$id = "car"; | |
this.$wheel = null; | |
this.$engine = null; | |
} | |
Car.prototype.run = function() { | |
this.$wheel.run(); | |
this.$engine.run(); | |
console.log('run car...'); |
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
examples=\ | |
helloworld\ | |
idle-basic\ | |
uvcat\ | |
uvtee\ | |
onchange\ | |
thread-create\ | |
queue-work\ | |
progress\ | |
tcp-echo-server\ |