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