What does it mean to send a message to the stream?

I will learn about streams. And I need to understand how the threads exchange among themselves, so what does it mean when we say something like “let Thread Asend a message Thread B”?

I can think of the following:

  • Thread Bblocks a queue, and Thread Aplaces a new record in this queue, which forces you to Thread Bunlock and retrieve this record.
  • Thread Bblocks the event (for example, in the Windows API there is an Event Object there ), and Thread Asignals this event, which will cause Thread Bto wake up (or is it called a stream notification and not sending a message to it?)
+4
source share
2

"" - , , , .

: "" - , "enter".

API, Win32 API.

, (. GetMessage), PostThreadMessage.

"" "", "": ( , ). "" , .

+2

Windows, , , . , Windows. . , .

http://rcgldr.net/misc/mtcopy.zip

0

All Articles