Joerg Hessdoerfer <[EMAIL PROTECTED]> wrote:
[snip]
> The problem is not the fork() call itself, this has been done (MinGW
> and cygwin I know of, possibly others) but the speed of fork() on
> windows, it's creepingly slow (due to usermode copy, I assume ;-).
> 
> IPC needs to be done, I'm just about to start...
> 

I'm not so familiar with the win32 kernel mode stuff.
But i've seen programs using .vxd (kernelmode, ring X ?) helpers for getting more 
privileges, maybe cross process ones.
Well, i'll look into this sometime if it's possible to reduce the context switches by 
going vxd.
There must be some way to read protection of the pages and map them as COW or RO in 
the new process to get rid of much of the copy, but then again, we're talking 
microsoft here :)
I once did a .exe loader that used the MapViewOfFile (win32 mmap) of the .exe itself 
to accomplish shared loadable modules that worked on x86 linux and win32 without 
recompile (might be something like the XFree86 binary gfx card drivers).

Good luck on the IPC work!

Magnus

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply via email to