How do condition variables differ from conventional variables?

What will be an ideal response?

Conventional variables are simply storage locations that contain values; these normally are directly accessible by program code that may read the variables and perhaps modify them at will. A condition variable is associated with a (possibly empty) queue of threads waiting for the condition variable to be signaled. Clients of the monitor cannot reference its condition variables directly; all operations on condition variables are performed on the client’s behalf through monitor procedures (to which the client also does not have direct access).

Computer Science & Information Technology

You might also like to view...

Explain the difference between early and late binding.

What will be an ideal response?

Computer Science & Information Technology

What is the difference between a sign and a symbol in graphic design?

What will be an ideal response?

Computer Science & Information Technology