Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Number of threads shown in Windows Task Manager?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> Number of threads shown in Windows Task Manager? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Number of threads shown in Windows Task Manager? - Apr. 2, '05, 6:45:25 PM   
yoldas

 

Posts: 5
Status: offline
If I create a thread in a process and if I look at it with
ps axL | grep <process_name>
I see the number of threads for this process as 2, correctly.
Why does Windows Task Manager show 3 threads for that process?
Actually it is always showing one more (2 for 1, 3 for 2, etc.)
Thanks...
Post #: 1
RE: Number of threads shown in Windows Task Manager? - Apr. 3, '05, 12:26:10 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The extra thread is assigned for the delivery of signals to the process.
The signal delivery for Interix 3.5 is similar to the way it's done with Solaris.
(As a side note this is different from Interix 3.0 and earlier versions because
of the change to support Pthreads). The design of having this extra thread for the
signal delivery has to do with Pthreads and how things need to be handled and/or
reacted to correctly. If you are running a threaded Interix process you don't have
control over thread with the pthread API (you'd mess yourself up if you did).
So from the Interix space you see N threads listed because you have control at
maximum of over N threads. Win32 is reporting what the kernel is reporting (N+1)
because in the Win32 world signals are not part of the model.

(in reply to yoldas)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> Number of threads shown in Windows Task Manager? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047