Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is MDI internally multithreaded?

Status
Not open for further replies.

KernelObject

Programmer
Jul 25, 2001
65
IN
G'morning,

Someone please answer this:

Is the MDI architecture provided by MFC, internally multithreaded? i.e, when multiple documents are opened in MS-Word, say, are they each running on a seperate thread?

If not, if they all run on a single thread, and if a single thread were to open multiple files, can IPC be possible inside a single thread? Wouldnt it have been more appropriate to have named it ITC?

thnx in advance
 
The MDI can supports multithreading, but I don't believe it does any in the background - instead it activates the relevant objects in the primary thread as necessary.

I've never used IPC (Inter Process Communication) in an MDI for use within the MDI.

Inter process communication is for exhanging data between processes/applications. Threads are subsets of processes, therefore IPC is accurate.

In typical thread data exchange/messaging, the MAPI can be used with SendMessage (waits for a response from the thread data is sent to) or PostMessage (Sticks it in the queue and lets the calling thread continue).

CoolNameDenied
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top