Solved

Switching between threads

Posted on 2000-04-27
2
169 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

707 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