Message-ID: <5MUCMi$SvY@newsmth.net>
Subject: 问一个node js写文件的问题
Date: Fri, 07 Mar 2014 00:18:21 +0000
From: Xlonelyeagle@newsmth.net-SPAM.no (青色菩提树)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.network.programming.20141003.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!news.neu.edu.cn!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.network.programming
Organization: 水木社区
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: NetPRG/A/M.1394151500.J0
Xref: 74.82.202.154 cn.bbs.comp.network.programming:13432

我想执行100个任务,这些任务都是异步的。每个任务最后都会往同一个文件里写一些东西。
怎么保证写文件不出错。
--

※ 来源:·水木社区 http://www.newsmth.net·[FROM: 129.123.4.*]