> The states that are supported by the ps in *nix environment are (using
> the s option of ps command):
> D Uninterruptible sleep (usually IO)
> R Running or runnable (on run queue)
> S Interruptible sleep (waiting for an event to complete)
> T Stopped, either by a job control signal or because it is being
> traced.
> W paging (not valid since the 2.6.xx kernel)
> X dead (should never be seen)
> Z Defunct ("zombie") process, terminated but not reaped by its parent.
>
> Can we get this type of information using any of the packages with in
> perl for the windows environment.
I'm not an expert on Unix, but I'd dare guess that only a subset, if
any, of these would map to Windows, and the mapping would likely be very
unclean - i.e. the semantics of being in a certain state may be somewhat
different and thus of limited use. Just as an example, running the
Sysinternals 'pslist -d' shows thread states...but there are
'Wait:UserReq', 'Wait:LpcReceive', 'Wait:DelayExec' just to name a few;
mapping them to the above seems futile...it's so OS specific that
portability of terminology is long gone.
So there *is* a lot of state information to be gained, but it was a
long, long time since I worked with that and I doub't there are any
existing Perl modules that will extract it - I think you need to step
down to C to get what you want (or possibly Win32API would be enough).
Exactly what the API's are however...hmmm. Sorry, can't advise...:-(
Just curious, what are you trying to accomplish?
ken1
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs