Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Switching between threads

Posted on 2000-04-27
2
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 105 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

610 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