Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!wupost!howland.reston.ans.net!math.ohio-state.edu!news2.uunet.ca!ukma!nimrod From: nimrod@ms.uky.edu (B. A Krishna) Subject: thread-implementation details Message-ID: <CEw92y.GoA@ms.uky.edu> Organization: University Of Kentucky, Dept. of Math Sciences Date: Thu, 14 Oct 1993 15:44:56 GMT Lines: 18 I am attempting to implement a user-level thread library on sun4. I need to be able to execute a thread in its own allocated stack and for this reason, I need to be able to modify the stack pointer to point to the top of the new thread's stack at thread creation time. Is there any way of achieving this without resorting to assembly? . I remember someone telling me that a special bsd-specific system call which can be used to handle SIGUSR1 on an alternate stack, could be used to modify the stack pointer....but I'm uncertain about this and how this would be relevant to my problem. Any help would be much appreciated. Krishna -- --------------------------------------------------------------------------- " There's no dark side of the moon really. Matter of fact, it's all dark" ---------------------------------------------------------------------------