Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!seismo!uunet!mcsun!cernvax!chx400!bernina!lubich From: lubich@bernina.ethz.ch (Hannes Lubich) Newsgroups: comp.unix.questions Subject: where to place shared memory segments? Message-ID: <1991Jan30.174346.28676@bernina.ethz.ch> Date: 30 Jan 91 17:43:46 GMT Reply-To: lubich@komsys.tik.ethz.ch (Hannes Lubich) Organization: Swiss Federal Institute of Technology (ETH), Zuerich Lines: 18 Hi, following figure 2.2 and his remark regarding shmbrk below figure 3.30 in W. Richard Stevens'book "Unix Network Programming" it seems that shared memory segments are "normally" placed between the heap and the stack segment of a process address space. I was asked recently why such segments couldn't be put on the heap just as other dynamically allocated data structures. Besides the argument that heap administration is something totally unrelated to allocation of shared memory segments, ist there any serious problems with placing shared memory on the heap? Are there any advantages, even? Thanks a lot in advance --HaL -- ~ UUCP/Usenet : {known world}!mcsun!cernvax!ethz!lubich ~ or : lubich@ethz.uucp ~ CSNET/ARPA/BITNET : lubich@komsys.tik.ethz.ch ~ The usual disclaimer : No, it wasn't me, somebody must have used my account.