Solved

Switching between threads

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now