Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: jgk@panix.com (Joe keane) Newsgroups: comp.compilers Subject: Re: Question about inter-thread stack references Date: Sun, 25 Jan 2015 09:27:16 +0000 (UTC) Organization: Public Access Networks Corp. Lines: 12 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <15-01-042@comp.compilers> References: <15-01-015@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: miucha.iecc.com 1422204888 8700 2001:470:1f07:1126:0:676f:7373:6970 (25 Jan 2015 16:54:48 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Sun, 25 Jan 2015 16:54:48 +0000 (UTC) Keywords: parallel Posted-Date: 25 Jan 2015 11:54:48 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1499 In article <15-01-015@comp.compilers>, Ivan Godard wrote: >If a process has two or more threads running in it, what are the rules >regarding one thread referencing memory in a different thread's stack? It should be illegal, if you ask me. [Even if they have some way to lock and synchronize? Imagine that one thread is acting as a server for others that put requests into a queue, and the queue entries point to structures in the requesting thread's stack. -John]