Submitted by Mi-K on Tuesday, May 1, 2012 - 6:39pm
The wait() syscall is often used with the fork() syscall.
Indeed, with the wait() syscall we can be sure that the child will be executed before the parent process.
In a trivial vision, this is like mutexes for threads.
Submitted by Mi-K on Thursday, April 19, 2012 - 4:07pm
The bind() system call function is used with socket().
It assigns the address of the second argument to the file descriptor retrieved by socket().
Of course before using bind(), we must have a valid fd generated by socket().