Solved

Switching between threads

Posted on 2000-04-27
2
157 Views
Last Modified: 2013-11-20
In a Multithreaded application Is there any MFC function used to switch from one thread to another thread
0
Comment
Question by:tanand_in
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 35 total points
ID: 2757060
> In a Multithreaded application Is there any MFC function
 > used to switch from one thread to another thread

No.

In Windows, threads run concurrently. The operating system gives each thread time quantums, and the threads use their quantums. When a thread is running, it will either execute for its full quantum, or release the balance of its quantum. A thread releases its quantum when it blocks on a waitable object (including waiting on the message pump) or when it calls the Sleep() API.

Winodws does not support directed yields.

If this doesn't answer your question, please be more specific. "Switch from one thread to another thread" might mean something different to you than it does to me.

..B ekiM
0
 

Author Comment

by:tanand_in
ID: 2757855
Thanks mikeblas
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xyBalance chalenge 58 88
Add content to output file 4 62
not able to insert into temp table 68 157
substring method in java 1 97
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now