473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

thread context swetching

hi
I have a project that returns all Process and process's thread information but Im having a problem with counting the context switching for threads
any suggestion ??
Dec 19 '18 #1
2 1521
weaknessforcats
9,208 Expert Mod 8TB
I know what a thread context is but why do you need to count them?

The thread context is the info you need to unfreeze a frozen thread.
Dec 20 '18 #2
@weaknessforcats my program is for monitoring/controlling process/thread so I want to know the effect of my forcing to thread context switching
Dec 20 '18 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: James Dunkerley | last post by:
Hi, I am trying to create a class which downloads a web page in the background and then raises an event in the original thread in which it was created. This class is going to be the basis of a...
13
by: William Stacey | last post by:
Using the following code sample: public byte Get() { // <= Possible to switch Here?? lock(syncLock) { //Do something in Get(). } }
2
by: Wilfried Mestdagh | last post by:
Hi, I create a class whitch creates a thread. When thread finish it has to fire event. But I want to fire this event in the context of the thread that created the class (usually main thread)....
5
by: Steve - DND | last post by:
If I declare a property as ThreadStatic, or I use the thread Context to set values on, will they be retained after a page processes? When a page finishes, is all data on the thread wiped before it...
2
by: mike2036 | last post by:
Does anyone know how I can determine the thread context in VB.NET? I have an elapsed timer event that I tie to the application context via SynchronizingObject. But code I run in the elapsed event...
3
by: mike2036 | last post by:
Hi all, I'm seeing cases running my application outside the debugging environment where WndProc is running in a separate thread context from the form and mainline. This is causing issues trying...
0
by: Steve Wilkinson | last post by:
I have a managed class (.NET 2.0) which has an internal thread. From within this thread events are being raised to the hosting UI. As the event is raised under the context of the internal thread...
6
by: Extremest | last post by:
I am new to threading and trying to figure some things out. Are all variables in a thread set to only that thread? Meaning if I create 2 instances of a class and then put each one in a different...
13
by: Michael M. | last post by:
In Perl, it was: ## Example: "Abc | def | ghi | jkl" ## -"Abc ghi jkl" ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st pipe). $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g;...
3
by: Jamie Risk | last post by:
What thread does the DataReceived event run on? I'm preparing a design that uses the DataReceived event to stimulate a protocol state machine (PSM). The ambition is to have the serial process...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.