Re: [Cppcms-users] questions about chat example code
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-11-23 10:02:32
|
Artyom Beilis > Since asynchronous applications run in main thread and > are event driven, shouldn't the word > "simultaneously" be written as > "sequentially" instead? Because asynchronous > applications do not accept and process requests > concurrently, requests must wait in line for processing. > Asynchronous applications run in main thread and thus > can never handle multiple connections simultaneously. They > handle one connection at a time. No... Simultaneously does not mean multithreaded :-) Async App can keep more than one open connection simultaneously unlike the synchronous application. like in a chat example, where the waiters_ is a set of multiple connections. Artyom |