Click here to Skip to main content
15,903,695 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
PinnedThe C++ / CLI is for managed and mixed-mode C++ programming only Pin
Chris Maunder9-Jan-06 9:36
cofounderChris Maunder9-Jan-06 9:36 
QuestionMultiThreading/Synchronization related problem Pin
Amrit Agr15-Apr-24 7:22
Amrit Agr15-Apr-24 7:22 
Hi Friends,

I have been asked this below question in a interview related to MultiThreading/Synchronization
I don't have much expertise in the same area.
Please help me with the solution.
Thanks in Advance

Problem->
Develop a C++ program to demonstrate threading and synchronization.

Char code generated by main process on press of key. (int iChar = getch();​ )

Application will accept key between 0 to 9 only.

Three threads are spawned by main process to display key pressed

Any one of the thread will display the Number key pressed and and Thread ID

If No key is pressed Threads will wait for input.

Process will be terminated if Key '0' is pressed.

AnswerRe: MultiThreading/Synchronization related problem Pin
Richard MacCutchan15-Apr-24 21:46
mveRichard MacCutchan15-Apr-24 21:46 
GeneralNeed Help (Command Console) Pin
Mahek Thapa30-Mar-24 5:17
Mahek Thapa30-Mar-24 5:17 
GeneralRe: Need Help (Command Console) Pin
Victor Nijegorodov30-Mar-24 9:32
Victor Nijegorodov30-Mar-24 9:32 
GeneralRe: Need Help (Command Console) Pin
Richard MacCutchan30-Mar-24 22:34
mveRichard MacCutchan30-Mar-24 22:34 
GeneralRe: Need Help (Command Console) Pin
Andre Oosthuizen31-Mar-24 23:07
mveAndre Oosthuizen31-Mar-24 23:07 
GeneralRe: Need Help (Command Console) Pin
Mahek Thapa10-Apr-24 20:53
Mahek Thapa10-Apr-24 20:53 
GeneralRe: Need Help (Command Console) Pin
Dave Kreskowiak11-Apr-24 3:49
mveDave Kreskowiak11-Apr-24 3:49 
GeneralRe: Need Help (Command Console) Pin
Andre Oosthuizen11-Apr-24 6:29
mveAndre Oosthuizen11-Apr-24 6:29 
QuestionConvert From C# to C++/CLI Pin
Paramu19731-Mar-24 14:26
Paramu19731-Mar-24 14:26 
QuestionTrying to Add System::ComponentModel Pin
Richard Andrew x649-Dec-23 10:10
professionalRichard Andrew x649-Dec-23 10:10 
AnswerRe: Trying to Add System::ComponentModel Pin
Gerry Schmitz9-Dec-23 10:55
mveGerry Schmitz9-Dec-23 10:55 
GeneralRe: Trying to Add System::ComponentModel Pin
Richard Andrew x649-Dec-23 13:25
professionalRichard Andrew x649-Dec-23 13:25 
AnswerRe: Trying to Add System::ComponentModel Pin
Richard MacCutchan9-Dec-23 21:11
mveRichard MacCutchan9-Dec-23 21:11 
QuestionTreelistView c++/cli Pin
Temblor21-Aug-23 23:05
Temblor21-Aug-23 23:05 
AnswerRe: TreelistView c++/cli Pin
Richard MacCutchan22-Aug-23 0:09
mveRichard MacCutchan22-Aug-23 0:09 
GeneralRe: TreelistView c++/cli Pin
Temblor22-Aug-23 3:57
Temblor22-Aug-23 3:57 
GeneralRe: TreelistView c++/cli Pin
Richard MacCutchan22-Aug-23 4:03
mveRichard MacCutchan22-Aug-23 4:03 
AnswerRe: TreelistView c++/cli Pin
jschell22-Aug-23 6:41
jschell22-Aug-23 6:41 
GeneralRe: TreelistView c++/cli Pin
Peter_in_278022-Aug-23 17:20
professionalPeter_in_278022-Aug-23 17:20 
GeneralRe: TreelistView c++/cli Pin
Temblor22-Aug-23 20:54
Temblor22-Aug-23 20:54 
GeneralRe: TreelistView c++/cli Pin
Richard MacCutchan22-Aug-23 21:48
mveRichard MacCutchan22-Aug-23 21:48 
GeneralRe: TreelistView c++/cli Pin
jschell23-Aug-23 6:47
jschell23-Aug-23 6:47 
AnswerRe: TreelistView c++/cli Pin
Gerry Schmitz23-Aug-23 5:49
mveGerry Schmitz23-Aug-23 5:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.