top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

OS: How can make sure process creation is more expensive that thread creation ?

+2 votes
312 views
OS: How can make sure process creation is more expensive that thread creation ?
posted Jun 23, 2014 by Rupam

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
AFAIK process creation is always more expensive then thread creation (except in Java though not sure)

Similar Questions
+4 votes

So many times, we make foreground process to background process in linux system. How does it handle internally ?

0 votes
while(true)
{
  sleep(1); /* sleep for 1 second */
  if(getpid()%2 == 0)
  {
     fork();
  }
}

How many no.of processes are created by the end of 12th second, if
time starts from 0th second? Process id's start from 0.

0 votes

Can someone please explain using any example ?

...