Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. MultiThreading/Synchronization related problem

MultiThreading/Synchronization related problem

Scheduled Pinned Locked Moved Managed C++/CLI
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amrit Agr
    wrote on last edited by
    #1

    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.

    L 1 Reply Last reply
    0
    • A Amrit Agr

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Amrit Agr wrote:

      Please help me with the solution.

      Exactly what help are you asking for? If you are expecting someone else to write the code for you, I am afraid you have come to the wrong place. And if you have no expertise in this area, why are you being interviewed for such a role? Incidentally, your question has nothing to do with C++/CLI, it is should have gone to C / C++ / MFC Discussion Boards[^].

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups