第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

node js fork 多進(jìn)程 怎么判斷?

node js fork 多進(jìn)程 怎么判斷?

肥皂起泡泡 2018-10-17 11:03:05
node js fork 多進(jìn)程 怎么判斷
查看完整描述

1 回答

?
慕勒3428872

TA貢獻(xiàn)1848條經(jīng)驗(yàn) 獲得超6個(gè)贊

nodejs是一種單線程模型,但是,使用nodejs的child_process模塊可以實(shí)現(xiàn)多進(jìn)程任務(wù)。利用child_process可以創(chuàng)建子進(jìn)程,實(shí)現(xiàn)子進(jìn)程和主進(jìn)程之間的通信。
  nodejs v0.12.7版本child_process提供以下同步和異步的方式創(chuàng)建進(jìn)程:
  異步創(chuàng)建:
child_process.spawn(command[, args][, options])
options.stdio
options.detached
options.customFds
child_process.exec(command[, options], callback)
child_process.execFile(file[, args][, options][callback])
child_process.fork(modulePath[, args][, options])
同步創(chuàng)建:
child_process.spawnSync(command[, args][, options])
child_process.execFileSync(command[, args][, options])
child_process.execSync(command[, options])

查看完整回答
反對(duì) 回復(fù) 2018-11-18
  • 1 回答
  • 0 關(guān)注
  • 913 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)