Hi

Please notice that Threads & process are not the same.
A Thread is generated within the process scope. This mean that all Threads
created buy one process can easily communicate, share data and use the same
memory. With 2 processes sharing & communication is more complicated

Shahar
----- Original Message ----- 
From: "ik" <[EMAIL PROTECTED]>
To: "Christoph Bugel" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, May 23, 2004 3:27 PM
Subject: Re: fork on windows?


> Christoph Bugel wrote:
>
> > Muli Ben-Yehuda wrote:
> >
> >> That's not entirely accurate. fork() is several things, including a
> >> POSIX API (specification) and a system call implementation. There's
> >> nothing that says you can't implement a fork() wrapper on windows that
> >> will conform to the fork API while being implemented using windows
> >> APIs internally.
> >> That is not to say I have any idea what cygwin/mingw actually do.
> >
> >
>
> > -----------------------
> > I just tested the following in cygwin:
> > it compiles, and printf hello twice :)
> > (even without includes)
> >
> > int main(){
> >
> > fork();
> > printf("hello\n");
> > return 0;
> > }
> >
> >
> >
> First of all, read this:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rtcsrv/rtc/fork.asp
> :)
> Once you did so, read this:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;252193
> Now, http://support.microsoft.com/default.aspx?scid=kb;en-us;159127
> " One of the largest areas of difference is in the process model. UNIX
> has *fork*; Win32 does not. Depending on the use of *fork* and the code
> base, Win32 has two APIs that can be used: *CreateProcess* and
> *CreateThread*." taken from:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_port_from_unix_to_win32.asp
> and you can continue reading about it using msdn search :)
> now it's easy to create your own "fork()" as a function, but in my
> expirence, it's better to work with CreateProcess on Ms-Windows then to
> try to make it really a posix competible... and like Reply's saying
> about what they are showing: Just Don't Do it.
> Leave POSIX to the strongs and keep non stadrats stuff to MS.
>
> Ido
>
> -------
> X windows:
> Do your time.
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to