RE: When do I need to pin?
- From: nickdu <nicknospamdu@xxxxxxxxxxxxxxxx>
- Date: Fri, 3 Oct 2008 06:10:01 -0700
Thanks. That answered the original question fully however something you
mentioned in your last post has me thinking of another question.
Do the BeginXxx() and EndXxx() methods make use of overlapped IO or do they
simply rely on async delegates or worker threads to make the call
asynchronous? And here I guess we're referring to BeginRead() and EndRead()
on a FileStream object. I could probably just use reflector to see for
myself but it might be best to ask here.
I should probably mention what I'm working on that these questions came up.
I'm looking to provide a high throughput low latency IPC mechanism between
two .NET applications. One that is only required for interprocess on the
same box and one that ideally does not require me to open any ports. My
implementation is using named pipes. Unfortunately .NET (at least up to 2.0)
does not provided managed classes for named pipes so I've had to create
interop classes so that I can make the Win32 named pipe calls. On the client
end of the pipe I might (though I'm not sure) be able to use the .NET
FileStream class though I do need to make a call to WaitNamedPipe(). Not
sure if the .NET FileStream class will introduce much overhead over using the
interop CreateFile(), ReadFile(), WriteFile(), CloseHandle() methods.
--
Thanks,
Nick
nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com
.
- Follow-Ups:
- RE: When do I need to pin?
- From: "Jialiang Ge [MSFT]"
- RE: When do I need to pin?
- References:
- When do I need to pin?
- From: nickdu
- RE: When do I need to pin?
- From: "Jialiang Ge [MSFT]"
- RE: When do I need to pin?
- From: nickdu
- RE: When do I need to pin?
- From: "Jialiang Ge [MSFT]"
- When do I need to pin?
- Prev by Date: how to create a Net assembly as replacement for existing COM component
- Next by Date: Creating a Com Component in VB.net 2005
- Previous by thread: RE: When do I need to pin?
- Next by thread: RE: When do I need to pin?
- Index(es):
Loading