c - Asynchronous I/O and time consuming work -



c - Asynchronous I/O and time consuming work -

i know asynchronous socket programming more scalable synchronous.

but there 1 thing don't understand it:

if event loop should non blocking, how can delegate time consuming work thread without blocking? work queue needs mutex protection. know there lock free queues how done? can please give little concept thought of thing?

the worker threads pulling queue block time. have when queue empty. else supposed do?

it work items not supposed block need few queue worker threads.

async io using less threads.

if event loop should non blocking

this assumption false. not supposed not block. loop contains blocking time. every time queue empty , worker tries dequeue.

c sockets asynchronous tcp kqueue

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -