[Solved] How to create k number of processes using fork() call, where k is not power of 2 [closed]


You should have to use thread concept instead of using fork().

for(i=0; i < Num_OF_Thread; i++)
      {
         pthread_create( &thread_id[i], NULL, print_message_function, NULL );
      }
void print_message_function(  )
    {
     // Task wich u want ro perform
    }

1

solved How to create k number of processes using fork() call, where k is not power of 2 [closed]