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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. FAQ for an interview in Multithreading/C++

FAQ for an interview in Multithreading/C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++career
5 Posts 3 Posters 0 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
    AryaSoft
    wrote on last edited by
    #1

    Can one of you please post frequently asked Interview questions (with answers) for Multithreaded programming in C++/VC++ Thanks in advance!

    K L 2 Replies Last reply
    0
    • A AryaSoft

      Can one of you please post frequently asked Interview questions (with answers) for Multithreaded programming in C++/VC++ Thanks in advance!

      K Offline
      K Offline
      kumar_mk
      wrote on last edited by
      #2

      15.Types of threads? A.) There are 2 types of threads they are 1.) Worker threads (doesn’t have a message pump) —-> usually used for background processing like searching etc. 2.User Interface Thread(which has a message pump)  can be used to create windows. 16.Is it possible to share the thread stack memory to another threadNO 17.Types of Syncronization Classes? A.) CMutex, CSemaphore, CCriticalSection, CEvent 7.What is Serialization? Which macro is to be specified in the user-defined class, which will take part in serialization? A.) Serialization is the process of writing or reading the contents of an object to and from a file. Include the macros DECLARE_SERIAL in the .h file IMPLEMENT_SERIAL in the .cpp file 7. What are the parameters passed for IsLoading() and IsStoring() functions? A.) No parameters are passed to both the functions. 6. What do u mean by the third parameter in IMPLEMENT_SERIALIZE? A.) IMPLEMENT_SERIAL(class_name, base_class_name, wSchema); The 3rd parameter is wSchema  A UINT “version number” that will be encoded in the archive to enable a deserializing program to identify and handle data created by earlier program versions. The class schema number must not be –1. • Base class of all the threads --> CWinThread regards kumar_windows

      A 1 Reply Last reply
      0
      • A AryaSoft

        Can one of you please post frequently asked Interview questions (with answers) for Multithreaded programming in C++/VC++ Thanks in advance!

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        See the following Link http://www.codeguru.com/forum/showthread.php?p=1201802#mfc_thread[^] Knock out 't' from can't, You can if you think you can :cool:

        A 1 Reply Last reply
        0
        • K kumar_mk

          15.Types of threads? A.) There are 2 types of threads they are 1.) Worker threads (doesn’t have a message pump) —-> usually used for background processing like searching etc. 2.User Interface Thread(which has a message pump)  can be used to create windows. 16.Is it possible to share the thread stack memory to another threadNO 17.Types of Syncronization Classes? A.) CMutex, CSemaphore, CCriticalSection, CEvent 7.What is Serialization? Which macro is to be specified in the user-defined class, which will take part in serialization? A.) Serialization is the process of writing or reading the contents of an object to and from a file. Include the macros DECLARE_SERIAL in the .h file IMPLEMENT_SERIAL in the .cpp file 7. What are the parameters passed for IsLoading() and IsStoring() functions? A.) No parameters are passed to both the functions. 6. What do u mean by the third parameter in IMPLEMENT_SERIALIZE? A.) IMPLEMENT_SERIAL(class_name, base_class_name, wSchema); The 3rd parameter is wSchema  A UINT “version number” that will be encoded in the archive to enable a deserializing program to identify and handle data created by earlier program versions. The class schema number must not be –1. • Base class of all the threads --> CWinThread regards kumar_windows

          A Offline
          A Offline
          AryaSoft
          wrote on last edited by
          #4

          Thanks for your help Kumar! Today I got some new things to learn!

          1 Reply Last reply
          0
          • L Laxman Auti

            See the following Link http://www.codeguru.com/forum/showthread.php?p=1201802#mfc_thread[^] Knock out 't' from can't, You can if you think you can :cool:

            A Offline
            A Offline
            AryaSoft
            wrote on last edited by
            #5

            Thanks for your timely help Laxman!:)

            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