21void *handle(
void *ptr)
25 for (
int i = 0; i < 10; i++) {
41 printf(
"Starting Thread 1\n");
44 printf(
"Starting Thread 2\n");
47 printf(
"Starting Thread 3\n");
R__EXTERN TSystem * gSystem
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
static void Ps()
Static method listing the existing threads.
Long_t Join(void **ret=nullptr)
Join this thread.
static void Printf(const char *fmt,...)
Static method providing a thread safe printf. Appends a newline.
Int_t Run(void *arg=nullptr)
Start the thread.