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:

  1. could acheive functionality of fork() using createprocess() in windows?
  2. 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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -