What is a thread (VC++) and state the difference between Cmutex and Csemaphone?



What is a thread (VC++) and state the difference between Cmutex and Csemaphone?..

Answer / Mahesh Chandra

In VC++, a thread is a separate flow of execution that runs concurrently with other threads. Threads can be created using the `std::thread` class.nnThe difference between CMutex (CRT Mutex) and CSemaphore lies in their usage:n- CMutex provides mutual exclusion for protecting shared resources, ensuring only one thread accesses the resource at a time.n- CSemaphore manages a count of available resources, allowing multiple threads to access the resource concurrently if it's available.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VC++ AllOther Interview Questions

What is the difference between the cout and cin iostream objects?

7 Answers  


How do I install microsoft visual c++ 2015?

1 Answers  


Name the most commonly used wizards?

2 Answers  


What is persistence?

3 Answers  


What is the purpose of declaring a variable as unsigned?

2 Answers  


how to declare and populate an array of checkBoxes

1 Answers  


Is it safe to uninstall microsoft visual c++ 2008 redistributable?

1 Answers  


What is the return value when the InsertItem function fails?

2 Answers  


What is vc++ redistributable?

1 Answers  


Name the three types of loops used in C++ programs?

4 Answers  


How do you define a function in vc++?

1 Answers  


What is microsoft visual c++ 2013 redistributable package x64?

1 Answers  


Categories