home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!newsaintmail
- From: sim@mdtf14.fnal.gov (Jim Sim)
- Subject: lightweight processes
- Message-ID: <SIM.92Jul30175133@mdtf14.fnal.gov>
- Sender: daemon@linac.fnal.gov (The Background Man)
- Nntp-Posting-Host: mdtf14.fnal.gov
- Organization: Fermilab, Batavia, IL
- Distribution: usa
- Date: Thu, 30 Jul 1992 23:51:33 GMT
- Lines: 13
-
- I am interested in using lightweight processes (threads) for a project.
- The man page for lwp_create says that arguments passed to the thread
- being created must be int's. I am interested in using it in a fashion in
- which I also pass pointers to the thread.
-
- I wrote a program in which I passed a pointer to an int as one of the
- arguments to lwp_create, then in the thread I received it as a pointer to
- an int. The code in the thread received the correct pointer, as I could
- examine the contents of the address.
-
- My program probably only works because the pointer uses the same amount of
- space as an int. Am I asking for trouble by trying to pass pointers to the
- thread? Any helpful comments would be appreciated.
-