Jump to content

fork() ??


jonsmau
 Share

Recommended Posts

Se o objectivo é simplesmente criar um novo processo, podes usar a CreateProcess();

Mas se o objectivo é criar uma verdadeira cópia do processo (memória, canais, fluxo de execução, etc), é bastante difícil.

A biblioteca Cygwin, cujo objectivo é implementar a API POSIX (Unix/Linux/etc) para Windows, detalha o processo que eles usam, e é bastante complicado: http://www.redhat.com/support/wpapers/cygnus/cygnus_cygwin/architecture.html

Também podes usar a própria Cygwin, que já implementa essas funções, mas se o programa é para ser distribuído e não é Open Source, tens que licenciar a biblioteca à Red Hat: http://www.redhat.com/services/custom/cygwin/

❝The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.❞- John Carmack on software patents

A list  of command line apps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.