🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #1696

Process identification with Wptr

#1696
From: Philipp Lanches
Date: Wed, 22 May 1991 17:21
29 lines
1957 bytes
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)
Technical Details
Message-ID: <10882@ifi.informatik.uni-stuttgart.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!ifistg!lanches@adam.informatik.uni-stuttgart.de

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!ifistg!lanches@adam.informatik.uni-stuttgart.de
From: lanches@adam.informatik.uni-stuttgart.de (Philipp Lanches)
Newsgroups: comp.sys.transputer
Subject: Process identification with Wptr
Message-ID: <10882@ifi.informatik.uni-stuttgart.de>
Date: 22 May 91 17:21:22 GMT
Sender: news@ifistg.uucp
Organization: Informatik, Uni Stuttgart, W.Germany
Lines: 29
Originator: lanches@adam