Pergunta de entrevista da empresa TD

Ways of threads communicating

Respostas da entrevista

Sigiloso

22 de abr. de 2012

message queue, socket, database.

Sigiloso

25 de abr. de 2012

I would figure that the low hanging fruit here would be shared memory before you even get to socket abstractions, mailslots, named pipes, etc. You would share a synchronization object between the multiple threads and signal the other thread with something such as a semaphore, reader/writer lock to let it know that it can know perform an operation on shared memory.