c++ - CreateProcess() in a client server application in windows -
i working on udp client-server application 1 server supposed handle 40 clients logged on @ once.
now in unix, such issues resolved using fork
function creates child process deal client , leaves server accept new connections.
i searched on internet , found out fork
not available in windows, createprocess
used.
my previous research introduced me thread pools. i've 2 questions:
- could acheive functionality of
fork()
usingcreateprocess()
in windows? - if possible, should go for: thread pools or creating multiple processes?
in linux fork function used create new process. each process, there different virtual memory space. threads, 1 common virtual memory there. the fork api can simulate in windows (upto extent) using native api rtlcloneuserprocess.
Comments
Post a Comment