HighTechTalks DotNet Forums  

Re: FIFO mutex

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Re: FIFO mutex in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Pavel Lebedinsky [MSFT]
 
Posts: n/a

Default Re: FIFO mutex - 05-25-2005 , 12:07 AM






Hit send too early. Anyways, critical sections have been changed
in W2K3 SP1 / XP x64 to allow non-FIFO order under contention.

Quote:
There is no way to block kernel APCs from user mode.

If you need strict FIFO then I think the easiest approach is to
give each thread its own event to wait on. Or may be you can
redesign things so that infrequent violations of FIFO order can
be handled gracefully.

Generally speaking, strict FIFO order is rarely necessary or
even desired. For example, critical sections before W2K3 SP1
had scalability problems under contention because they tried
to maintain FIFO order (ignoring things like reordering due
to kernel APCs). So now critical sections have been changedare no longer

--
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Aleksey Tkachenko" wrote:

.NET Mutex are wrappers around OS Mutant ojects so they behave the same,
I really don't see how you could prevent the APC's to interfere when you
would implement your own FIFO queue.

I think about some class, which will include some mutex, event and queue
inside.
I just was wondering about something the same already included into the
dotNET.
Or some possibility to block the APC.



Reply With Quote
  #2  
Old   
Willy Denoyette [MVP]
 
Posts: n/a

Default Re: FIFO mutex - 05-26-2005 , 09:14 AM







"Pavel Lebedinsky [MSFT]" <pavel (AT) online (DOT) microsoft.com> wrote

Quote:
Hit send too early. Anyways, critical sections have been changed
in W2K3 SP1 / XP x64 to allow non-FIFO order under contention.

And XP SP2 I thought, or am I wrong?

Willy.




Reply With Quote
  #3  
Old   
Pavel Lebedinsky [MSFT]
 
Posts: n/a

Default Re: FIFO mutex - 05-26-2005 , 11:50 PM



"Willy Denoyette [MVP]" wrote:

Quote:
Hit send too early. Anyways, critical sections have been changed
in W2K3 SP1 / XP x64 to allow non-FIFO order under contention.

And XP SP2 I thought, or am I wrong?
No this change is only in W2K3 SP1 (and XP x64 since it's built from
the same codebase as server SP1).

--
This posting is provided "AS IS" with no warranties, and confers no
rights.




Reply With Quote
  #4  
Old   
Willy Denoyette [MVP]
 
Posts: n/a

Default Re: FIFO mutex - 05-28-2005 , 01:12 PM




"Pavel Lebedinsky [MSFT]" <pavel (AT) online (DOT) microsoft.com> wrote

Quote:
"Willy Denoyette [MVP]" wrote:

Hit send too early. Anyways, critical sections have been changed
in W2K3 SP1 / XP x64 to allow non-FIFO order under contention.

And XP SP2 I thought, or am I wrong?

No this change is only in W2K3 SP1 (and XP x64 since it's built from
the same codebase as server SP1).

--
This posting is provided "AS IS" with no warranties, and confers no
rights.


So I was wrong, good to know.

Thanks,
Willy.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.