Your problem is the capital _V_ in void. This should be:
There are other problems with your code. May I suggest the following link? POSIX Threads | Loïc OnStage
( In particular, the post: "The main thread" and "Pthreads arguments passing" )
Cheers,
Loïc
--
"Computers are good at following instructions, but not at reading your mind." --
Parent Thread Of Child Thread
Suppose a process creates some threads say threadC and threadD.
Later on each of these threads create new child threads say threadC1, threadC2, threadC3 etc. So a tree of threads will get created.
Is there any way to find out the parent thread of one such... (1 Reply)
dear sir/madam
presently i am in a process of creating a multithread pool using
clone() system call in unix with c programming.
i am facing some problem ie., i am able create multithread pool and
able to keep all the threads in wait state,but when i call kill
(afunction revoke a... (6 Replies)
Hi all!
Is there a function in c++ to create new threads.I have writen a class "Thread"
in which I will be calling this thread function to creat threads.
Also is there a function to synchronize threads .I know that we can create objects like semaphores and critical sections to synchronize in... (2 Replies)