Link to home
Start Free TrialLog in
Avatar of jewee
jewee

asked on

Create a pthread then wait for a signal

How do you go about creating a pthread which then runs through an infinite for loop waiting for a signal from a server?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jewee
jewee

ASKER

Why do I need 3 threads?
You don't need three threads - but that sample illustrates how to use threads to wait for a signal in general.