[comp.sys.transputer] Process identification with Wptr

lanches@adam.informatik.uni-stuttgart.de (Philipp Lanches) (05/23/91)

In order to observe the activity of low priority processes, I want to look at 
the list of active processes in the corresponding queue. The problem I have is:

	As a process does not have a unique workspace pointer (Wptr) -- it can
	be modified by ajw, gajw and call instructions --, how can I associate 
	at run-time the Wptrs from the queue to one of the active processes ?

Since I am using C (on a Meiko in-sun computing surface with CSTOOLS), I think 
I cannot assume a static and ordered workspace allocation like in OCCAM. It 
might be possible to find a very compiler-specific solution to this problem,
but I would prefer a more general mechanism suitable for C-programs (at least
for the INMOS ANSI C-compiler). It would be acceptable to use a little bit
assembler code.

If anybody has an idea or a solution please contact me by e-mail. If this point 
seems interresting, I will post a summary of the responses to the net.

Thank you.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Philipp Lanches				IPVR/ISE, Universitaet Stuttgart
e-mail:					Breitwiesenstr. 20-22
  lanches@informatik.uni-stuttgart.de	W-7000 Stuttgart 80  (F.R.G)
 
-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Philipp Lanches				IPVR/ISE, Universitaet Stuttgart
e-mail:					Breitwiesenstr. 20-22
  lanches@informatik.uni-stuttgart.de	W-7000 Stuttgart 80  (F.R.G)