Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
How to set up a thread callback?The undocumented KeSetThreadSelectNotifyRoutine or KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir Chtchetkine
To: NT Developers Interest List
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated by the scheduler?
Basically, what I want is to detect a thread switch before newly activated thread continues its execution.
TIA,
Vladimir
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or
KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir Chtchetkine mailto:xxxxx
To: NT Developers Interest List mailto:xxxxx
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%
mailto:
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>
It’s been awhile since I’ve looked at this, but my recollection is that the
KiSwapContextNotifyRoutine (set by KeSetSwapContextNotifyRoutine) is only
called by the SMP kernel on a thread switch. It does not work on the single
processor kernel.
JimA
From: “Maxim S. Shatskih”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Re: How to set up a thread callback?
>Date: Fri, 29 Nov 2002 00:39:47 +0300
>
>How to set up a thread callback?The undocumented
>KeSetThreadSelectNotifyRoutine or KeSetSwapContextNotifyRoutine.
>
> Max
> ----- Original Message -----
> From: Vladimir Chtchetkine
> To: NT Developers Interest List
> Sent: Wednesday, November 27, 2002 9:41 PM
> Subject: [ntdev] How to set up a thread callback?
>
>
> Hi all!
> How can I set up a routine that will be called when a thread gets
>activated by the scheduler?
> Basically, what I want is to detect a thread switch before newly
>activated thread continues its execution.
>
> TIA,
>
> Vladimir
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to %%email.unsub%%
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
Never mind. They are documented
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 7:35 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or
KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir Chtchetkine mailto:xxxxx
To: NT Developers Interest List mailto:xxxxx
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%
mailto:
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>
Vladimir:
Where they are documented? I seached my XP IFS and did see them. Are they
documented in .NET IFS?
Thanks.
Bi
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 12:41 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Never mind. They are documented
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 7:35 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or
KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir Chtchetkine mailto:xxxxx
To: NT Developers Interest List mailto:xxxxx
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%
mailto:
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>
They are defined in ntddk.h and ntifs.h in W2K DDK/IFSK. I couldn’t find
description in docs but as far as I’m concerned
they ARE doced
Vladimir
-----Original Message-----
From: Bi Chen [mailto:xxxxx@AppStream.com]
Sent: Monday, December 02, 2002 12:50 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Vladimir:
Where they are documented? I seached my XP IFS and did see them. Are they
documented in .NET IFS?
Thanks.
Bi
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 12:41 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Never mind. They are documented
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 7:35 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or
KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir mailto:xxxxx Chtchetkine
To: NT Developers Interest List mailto:xxxxx
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%
mailto:
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>
Found them. However it is not in XP IFS. Does anyone know if the return
value of PTHREAD_SELECT_NOTIFY_ROUTINE would influence the selected thread
to be scheduled or not?
Bi
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 12:54 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
They are defined in ntddk.h and ntifs.h in W2K DDK/IFSK. I couldn’t find
description in docs but as far as I’m concerned
they ARE doced
Vladimir
-----Original Message-----
From: Bi Chen [mailto:xxxxx@AppStream.com]
Sent: Monday, December 02, 2002 12:50 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Vladimir:
Where they are documented? I seached my XP IFS and did see them. Are they
documented in .NET IFS?
Thanks.
Bi
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 12:41 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Never mind. They are documented
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 7:35 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or
KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir mailto:xxxxx Chtchetkine
To: NT mailto:xxxxx Developers Interest List
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated
by the scheduler?
Basically, what I want is to detect a thread switch before newly activated
thread continues its execution.
TIA,
Vladimir
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%
mailto:
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>
How to set up a thread callback? IIRC they were described in one of the “undocumented NT” websites or books.
Max
----- Original Message -----
From: Vladimir Chtchetkine
To: NT Developers Interest List
Sent: Monday, December 02, 2002 6:34 PM
Subject: [ntdev] Re: How to set up a thread callback?
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir Chtchetkine
To: NT Developers Interest List
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated by the scheduler?
Basically, what I want is to detect a thread switch before newly activated thread continues its execution.
TIA,
Vladimir
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
My recollection is that if your THREAD_SELECT_NOTIFY_ROUTINE returns FALSE, then the thread won’t be scheduled.
sm
-----Original Message-----
From: Bi Chen [mailto:xxxxx@AppStream.com]
Sent: Monday, December 02, 2002 1:16 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Found them. However it is not in XP IFS. Does anyone know if the return value of PTHREAD_SELECT_NOTIFY_ROUTINE would influence the selected thread to be scheduled or not?
Bi
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 12:54 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
They are defined in ntddk.h and ntifs.h in W2K DDK/IFSK. I couldn’t find description in docs but as far as I’m concerned
they ARE doced
Vladimir
-----Original Message-----
From: Bi Chen [mailto:xxxxx@AppStream.com]
Sent: Monday, December 02, 2002 12:50 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Vladimir:
Where they are documented? I seached my XP IFS and did see them. Are they documented in .NET IFS?
Thanks.
Bi
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 12:41 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Never mind. They are documented
-----Original Message-----
From: Vladimir Chtchetkine [mailto:xxxxx@starbase.com]
Sent: Monday, December 02, 2002 7:35 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
Do you have a prototype/brief description of these?
TIA,
Vladimir
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 28, 2002 1:40 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to set up a thread callback?
The undocumented KeSetThreadSelectNotifyRoutine or KeSetSwapContextNotifyRoutine.
Max
----- Original Message -----
From: Vladimir mailto:xxxxx Chtchetkine
To: NT mailto:xxxxx Developers Interest List
Sent: Wednesday, November 27, 2002 9:41 PM
Subject: [ntdev] How to set up a thread callback?
Hi all!
How can I set up a routine that will be called when a thread gets activated by the scheduler?
Basically, what I want is to detect a thread switch before newly activated thread continues its execution.
TIA,
Vladimir
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@softek.fujitsu.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:xxxxx></mailto:xxxxx>