home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.parallel
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!gatech!hubcap!fpst
- From: aghao@sersun2.essex.ac.uk ()
- Subject: Re: Manipulating process workspace on the Transputer
- Message-ID: <1992Nov17.132507.14895@hubcap.clemson.edu>
- Sender: fpst@hubcap.clemson.edu (Steve Stevenson)
- Reply-To: aghao@sersun2.essex.ac.uk ()
- Organization: University of Essex, Colchester, UK
- Date: Tue, 17 Nov 1992 13:25:07 GMT
- Approved: parallel@hubcap.clemson.edu
- Lines: 48
-
- Greetings.
-
- I'm sorry I have been rather silent since I posted my original question. I had
- to leave town (:-) for a long weekend, and only returned last night.
-
- Thanks very much for the responses. I think my original post was slightly
- ambiguous, as I failed to explain the conditions under which I wished to access
- the workspaces. As a reminder, I said
-
- >As part of my research, I need to be able to examine the workspace of one or
- >more Transputer processes. Clearly, this is quite feasible, as I can get hold
- >of the Wptr of a process.
- >
- >However, as I need to access the workspaces as separate, individual entities,
- >I need to know what the boundaries are, ie where each particular process'
- >workspace starts and *ends*. One possibility is to find out what the size
- >of each workspace is, and that is what I am hoping to be able to do.
-
- To this I would add that I need this information at run-time. The idea is that
- there are low-priority processes executing code implemented as functions
- (A and B, say). Each of these processes would have an associated workspace,
- pointed to by Wptr, for local vars, params, etc. I need to know exactly what
- the size of the allocated workspace is, and I would like to design a separate
- function (G, say), which, executed by a high priority process, would be able to
- examine, access and manipulate the workspaces for A and B.
-
- I cannot rely on the chance that the 2 workspaces will be consecutively placed,
- nor can I make assumptions about the workspace sizes, as that is simply
- courting disaster. At the same time, I'm sure that information either about
- the size of the workspace, or the ending address of the workspace (which amount
- to the same thing) will be available somewhere. This information will allow
- me to do what I like with the workspaces of A and/or B, safe in the knowledge
- that I am not tampering with the workspace of any other process(es).
-
- Ideally, the process G would be able to compile a table with workspace info
- on all processes of interest, and would then be able to accurately access any
- of them.
-
- Thanks,
-
- Obi Aghanya
- Dept. of Computer Science
- University of Essex
- Colchester CO4 3SQ
- UK
-
-
-
-