Umair K.

asked • 06/29/20

Find number of threads and Processes in a C Program

Hi, how do i find the number of total threads and processes in this C program?

Thanks

#include <stdio.h>

#include <unistd.h>

#include <pathread.h>

Int main()

{ int I;

For(i=0; i<5; i++)

{fork()

Thread_create(&tid, NULL, hello, NULL); }

Return 0; }

Int hello()

 {  void * x  }


1 Expert Answer

By:

Dylan B. answered • 11/10/20

Tutor
New to Wyzant

Computer science Tutor, Associates degree, Real world experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.