Message-ID: <5M9CSU$WvM@newsmth.net>
Subject: Re: [求助]多线程Socket问题
Date: Sat, 08 Feb 2014 03:15:42 +0000
From: xiaoqiqi@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!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!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/e/M.1391829342.Y0
X-Original-Bytes: 750
Xref: 74.82.202.154 cn.bbs.comp.network.programming:13409

如果send是线程安全的,应该不会交错吧,两个线程同时send,应该会自动排队
【 在 Orpherus (奥路菲) 的大作中提到: 】
: send写少了会交错

--

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