gcc 4.4.1
I am writing a server program where many clients will connect to the client, and the server will manage the client request and manage the state of the client. Many high-load clients will be a deciding factor when using asynchronous programming. However, I have never done Async in C.
However, from what I understand from my research, I think I need to use Async.
1) Using synchronous programming would mean that calls would be blocked and create a bottleneck. The system will simply crash under high load
2) Using synchronous programming using threads would create a new thread for each client, which would mean at high load that system resources could be used and could make the system more complex to handle all of these threads.
3) Using Async would mean that I would have to develop a state machine
Can someone point me in the right direction? In programming at Aysnc?
Thanks so much for any advice,
source
share