Solved

Switching between threads

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 155
Execute multiple curl cmds with sleep and send output to file 10 104
JQuery serialize and unserialize 8 137
Problem to Office 1 15
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.

828 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