Comments on: Whether should i use processes or threads in Linux? /linux-based-tips/whether-should-i-use-processes-or-threads-in-linux/ Because one technology can make another technology rich Fri, 25 May 2012 23:21:19 +0000 hourly 1 http://wordpress.org/?v=3.3.2 By: JIGAR PATEL /linux-based-tips/whether-should-i-use-processes-or-threads-in-linux/#comment-468 JIGAR PATEL Thu, 02 Feb 2012 13:55:18 +0000 /?p=813#comment-468 exec() : The exec call is a way to basically replace the entire current process with a new program. It loads the program into the current process space and runs it from the entry point. clone() : to understand this you need to understand the concept of fork() see fork call basically makes a duplicate of the current process, identical in almost every way (not everything is copied over, for example, resource limits in some implementations but the idea is to create as close a copy as possible). where clone is something differ Clone, as fork, creates a new process. but these calls allow the child process to share parts of its execution context with the calling process, such as the memory space, the table of file descriptors, and the table of signal handlers.So here IPC calls make easily i hope you get it but dont worry very soon i will write one article for clearing all such confusion about those system call ...right now i am also working with such things..!!! exec() : The exec call is a way to basically replace the entire current process with a new program. It loads the program into the current process space and runs it from the entry point.

clone() : to understand this you need to understand the concept of fork()
see fork call basically makes a duplicate of the current process, identical in almost every way (not everything is copied over, for example, resource limits in some implementations but the idea is to create as close a copy as possible).

where clone is something differ
Clone, as fork, creates a new process. but these calls allow the child process to share parts of its execution context with the calling process, such as the memory space, the table of file descriptors, and the table of signal handlers.So here IPC calls make easily

i hope you get it but dont worry very soon i will write one article for clearing all such confusion about those system call …right now i am also working with such things..!!!
JIGAR PATEL recently posted..Whether should i use processes or threads in Linux?My Profile

]]>
By: Rasmiranjan Nayak /linux-based-tips/whether-should-i-use-processes-or-threads-in-linux/#comment-461 Rasmiranjan Nayak Wed, 01 Feb 2012 09:00:27 +0000 /?p=813#comment-461 Jigar:- What is the difference between exec() and clone()? I am novice to UNIX.. Jigar:- What is the difference between exec() and clone()? I am novice to UNIX..
Rasmiranjan Nayak recently posted..Volatile Keyword in Embedded SystemMy Profile

]]>