I have written a small custom web server application in C running on Linux. When the application receives a request it calls fork() and handles the request in a separate pro
Consider SUA ( aka Windows Services for Unix ). It has nearly everything you need to port applications.
man chroot(interix)