Click here to Skip to main content
15,887,683 members
Everything / CPU

CPU

CPU

Great Reads

by Jeremy C. Ong
Accelerate a C++ article with GPU support using Intel's oneAPI
by Alexandre De Pereyra
Efficient anti-aliasing techniques are an important tool of high-quality, real-time rendering. A new Intel technique called Morphological Antialiasing (MLAA) addresses limitations of the standard technique, MSAA. This article discusses MLAA implementation. Includes code samples and free download.
by Paul Lindberg
This case study details how the game takes best advantage of low-power systems, while still scaling up to look and run fantastic on more robust systems.
by Apriorit Inc, Artem K.
Find out approaches which you can use to improve runtime algorithms for zero-day threat detection

Latest Articles

by ToughDev
Hyper-V & Hardware Assisted Virtualization
by Jeremy C. Ong
Accelerate a C++ article with GPU support using Intel's oneAPI
by Martin Vorbrodt
How to measure CPU time?
by Apriorit Inc, Artem K.
Find out approaches which you can use to improve runtime algorithms for zero-day threat detection

All Articles

Sort by Updated

CPU 

19 Dec 2021 by 0x01AA
ISensor supports a property SensorType SensorType which is defined in ISensor like this: public enum SensorType { Voltage, // V Current, // A Power, // W Clock, // MHz Temperature, // °C ...
11 Jan 2022 by 0x01AA
I searched a lot to get a solution with OpenHardwareMonitor but I also had no success. Furthermore in a lot of posts I found a remark that OpenHardwareMonitor is not a good tool, but this I can't jugde. During these researches I found this easy...
22 Apr 2013 by Abhik03
I want to store the CPU and Memory Utilization of all the individual tasks after every 5 mins. from the task manager into a DB, say SQL Database. Is it possible to write a console application in C# which can accomplish this task and store the utilization in SQL Table.
25 Apr 2013 by Abhik03
Hi,I want to get the Memory Usage of a particular process in percentage (%). Below is the code which I used for CPU. But I am unable to get the same for Memory. There are so many counters in Memory Performance that I'm confused how to calculate or we can directly get the display in percentage...
17 Sep 2012 by AfterShave
How can I calculate the CPU Speed in VB.NET and how to find the CPU Temperature?
19 Jun 2011 by Albert Holguin
Getting information about the hardware installed on a system (and its operational parameters) is a function controlled by the drivers and operating system. C++, or any programming language, does not have calls to directly interface to hardware installed. Everything is processed via the OS's...
22 Jul 2011 by Alexandre De Pereyra
Efficient anti-aliasing techniques are an important tool of high-quality, real-time rendering. A new Intel technique called Morphological Antialiasing (MLAA) addresses limitations of the standard technique, MSAA. This article discusses MLAA implementation. Includes code samples and free download.
22 Feb 2013 by Alireza ghasemi
Hello dearsI want to know a 2.5 GHz CPU how many Calculation can do in every second.
20 Nov 2018 by Apriorit Inc, Artem K.
Find out approaches which you can use to improve runtime algorithms for zero-day threat detection
18 Feb 2017 by Brady Kelly
Just recently my PC's performance has become dismal, I even got about 10 'pauses' in the editor while typing these two sentences. Now if I used Process Explorer, I can sort by CPU, memory, and IO, descending, so the culprits are always visible at the top of the table.The problem with that is...
29 Aug 2014 by Chetan Saini
Suppose i have four screens A,B,C,D connected to single machine. I need to play different video to each screen which control and coordinated by application running on single machine.Problems i am facingHow to connect four screens to single machine.How to identify individual machine at...
1 Sep 2015 by codeprojectddx
I have been confused about this for a long time.As i know ,the thread switch is achieved by windows because of the cpu's support,but i actually donot know the mechanish.Hope a little help .thank you .
2 Nov 2017 by CodingIsDreamy
Hi everyone this is probably my last question on here as i've learnt a lot from this site regarding vb.net, there's just one thing i can seem to figure out. My filesystemwatcher uses like 50 percent cpu usage and i was wondering if anyone could edit my code to change the usage (lower cpu useage)...
8 Jul 2011 by CPallini
Did you google for?See Unified Extensible Firmware Interface[^] for EBC.MIPS architecture[^] for MIPS.SuperH[^] for SH4.THUMB[^] is an ARM 'instruction set state'.
15 Mar 2018 by CPallini
I suggest you to first write the symbolic code (assembly) and then, once your're confident it could work, transform it in machine language. Moreover, start simple: write, at first, a simple converter to radix 2 representation.
15 Jul 2016 by Dan_Suitor
We are experiencing periods of time when CPU utilization of our application goes to %100 percent for several seconds. I tracked this down to two CLR methods which are called when ‘new’ objects are created. The first being ?JIT_New@@YIPAVObject@@PAUCORINFO_CLASS_STRUCT_@@@Z. The second being...
26 Mar 2014 by Dave Kreskowiak
Put a Thread.Sleep(15000) just before your Next statement.This will force the thread to go to sleep for 15 seconds freeing up the CPU to do other things.Ummm...What's with the Application.ExitThread(), Application.Exit() and Application.DoEvents() calls? You don't need any of them. Get...
2 Nov 2017 by Dave Kreskowiak
The FSW doesn't sit around waiting for an event from NTFS. There are no such events. So how does the FSW get changes to the file system? Polling. Basically, the FSW goes to every directory and subdirectory it's told to watch and grabs the list of files for them. It calls ReadDirectoryChangesW...
26 Aug 2021 by Dave Kreskowiak
You can find that at Supported Memory Type for Intel® Core™ Laptop Processors[^] But, it's not the CPU that's going to limit the amount of RAM you can use, it's the motherboard.
6 Sep 2012 by db7uk
there are a couple of examples out there. What have you tried?http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c[^]http://blogs.msdn.com/b/dotnetinterop/archive/2007/02/02/system-diagnostics-performancecounter-and-processor-time-on-multi-core-or-multi-cpu.aspx[^]
18 Jun 2011 by Dr.Walt Fair, PE
Have a look at this link.[^]
4 Sep 2014 by Duncan Edwards Jones
The addition is one machine instruction, and copying into a buffer is another so 2 clock cycles is the absolute minimum. So - .00000005 seconds (+/- 100%)
10 Jan 2012 by fjdiewornncalwe
The best way for you to make your application to use less CPU and resources is to use this really cool exit(); function. It works really well. You'll find that your application will sleep really well and use virtually no resources.
17 Sep 2012 by fjdiewornncalwe
I haven't checked out all the links, but here are 225,000 Results[^] for you to start from. Please make an effort to search your question first. We are more than happy to help you with a specific issue you may encounter as you make an effort to get there.
16 Oct 2012 by fjdiewornncalwe
1) Using your debugger, step through the code which is pinning your CPU. Find out what calls are actually the problem. Just adding a random sleep command in is like putting a band-aid on a 2 inch gash. You may appear to have solved the problem, but it won't heal the root issue.2) Once you find...
20 Jun 2011 by Harmanjeet Singh
I am not agree with the above solution as it says no to your question. I worked at OS level. the thing you require can be done using the concept Device Driver Programming in windows, using which you can even do firmware level programming.. :)
21 Sep 2013 by Homero Rivera
Hi all!I'm trying to write a program that automatically creates as many threads as the computer can handle (not malware!).How do you create an instance of PerformanceCounter that gets the usage across all CPUs/Cores?All I've seen are examples that work on an individual core.Thank...
20 May 2011 by i.flower
this instruction must be executed at a privilege level of 0.
12 Dec 2017 by InfinityJoe
I've been searching a long time for this one until 2017, but i think No one and Nothing sources give a Hint about a "Real" value of Total CPU Usages just like Task Manager in VB.NET What I have tried: Here's some method i have tried with several suggestions on internet - performance counter...
12 Dec 2017 by InfinityJoe
So here's my rough attempt to Convert the C++ code to VB, but it's seems it's had something that missing listed below (Marked in Bold) : 1. I thought this is an importing a lib/dll statement in C++, so how to get the pdh.lib/dll or Referencing it on VB ? #pragma comment(lib, "pdh.lib") 2....
10 Nov 2020 by Jeremy C. Ong
Accelerate a C++ article with GPU support using Intel's oneAPI
12 Dec 2017 by Jochen Arndt
There is a helper library to get that information: The Performance Data Helper (see Using the PDH Functions to Consume Counter Data (Windows)[^]). Microsoft examples are in C but there are also corresponding VB (not .Net) functions: Performance Counters Functions for Visual Basic (Windows)[^] ...
19 Dec 2021 by John Bon Jovy
For my C# .Net Framework project I need to get 5 values: 1) CPU Load 2) CPU Temp 3) Current Voltage 4) VID Voltage 5) Current Frequency After doing some research, I figured that the best way to obtain those values would be to use...
11 Jan 2022 by John Bon Jovy
I implemented the code that obtaining hardware sensors' readings using OpenHardwareMonitor. The code looks like this: using OpenHardwareMonitor.Hardware;namespace WindowsFormsApp3{ public - Pastebin.com[^] It basically searches for the...
5 Feb 2022 by John Bon Jovy
I'm looking for a way to get a Core Effective Frequency without access to SMU or using APIs. According to AMD: Core Effective Frequency (without halted cycles) over the sampling period, reported in GHz. The metric is based on APERF and MPERF...
4 Sep 2014 by kavitha3
Hi ,I am not understanding what is your need and why ...But i can redirect u to Mr.Robert's Article.Its about ::How To: Measure execution time in C#[^]::
3 Apr 2016 by Kornfeld Eliyahu Peter
What loads data from the storage (disk) to the memory is your application...When you are opening a file and do some read process, you actually load some of that file into a memory structure...The CPU by itself can not access the storage, but only the memory...
29 May 2023 by LettuceLicker
Hey guys, so I installed cuda driver 516.94, cuda toolkit 11.7, manually installed cuDNN 8.5.0.96 sense I tried codeprojects cuDNN script it would just pull a cmd window up for a split second have no writing in it then just shut "dont know if...
3 May 2011 by Lutosław
I need to control C-State configuration. Specifically, I'd like to execute the following asm code:__asm { rdmsr and eax, 0x00 or eax, 0x01 wrmsr }Currently, I got this exception on rdmsr line:Unhandled exception at 0x00e3139e in...
3 Mar 2018 by Lê Ngọc Quý
Hello everybody! I have a problem in my projects. Hope anyone can help me! Thank you very much.I want to get current clock of processor in real-time (update each second) to plot a graph.I create a Timer with 1000 miliseconds interval, inside the Timer_Tick() function, I use this code to...
18 Jun 2021 by Manoj Chamikara
hi All Is Memory leakage effecting to CPU usage ? is there any articles or more related things to study Thank in advance! What I have tried: i say these article but it's didn't say memory leak effecting CPU usage Memory leak - Wikipedia[^]
16 Mar 2019 by Martin Vorbrodt
How to measure CPU time?
18 Feb 2017 by Mehdi Gholam
You shouldn't get "pauses" on Windows 10 since the scheduler is pretty good, however:1) Pauses could indicate cpu heat problems, so check your system's fans and clean and lubricate them (WD40 is excellent).2) Disconnect from the internet and see if you still have problems.3) Update your...
15 Mar 2018 by Member 13728029
Write Wombat1 machine language program that converts a number into a radix representation. For example, a number converted into radix 2 or radix 3. The program should be able to convert a decimal number into any radix from 2 to 8. Your program should take two inputs. The first input will be the...
6 Sep 2018 by Member 13976376
I'm currently working with a CpuSimulator, and I'm struggling with the instructions below, so some help would be greatly appreciated. "Type a program that reads numbers from IO (input), write them to IO and save them on the stack (PSH) until the user inputs the number 0. Then print the numbers...
6 Sep 2012 by MR. AngelMendez
Hi, how can I get my program to monitor all CPU usage from my computer.Thanks in advanced.
2 Nov 2017 by Mrunal Sonawane
Not sure but try adding a thread sleep in the loop... For like 500ms Try that and tell me if it works
3 Apr 2016 by MYQueries1
As we know that what are the things in the RAM are taken by the Processor to RUN. Who takes up the task of putting the data from HDD to RAM. Is it CPU? If yes It means again the Processor will do that task? I am bit confused can any on explain?Thanks in AdvanceWhat I have tried:As we...
26 Mar 2014 by Naim_86
Dim check As Thread Private Sub RunThread() Dim newThread1 As New ThreadStart(AddressOf Checkdata) check = New Thread(newThread1) check.Start() End Sub Private Sub Checkdata() Dim dt As Date Dim dset As DataSet Dim prr() As...
22 Mar 2022 by Naqib Ullah 2022
first of all I want to get the data from the user after that I want to calculate the average waiting time along with process arrival time as well as process burst time in c++ language. What I have tried: i need this project as soon as possible...
24 Jan 2011 by Nish Nishant
This is one example I got with a quick google:http://www.galacticelectronics.com/Simple4BitCPU.HTML[^]
19 Dec 2014 by OKarpov
How to use ASM in C#.NET and most fast memory copy method
9 Jan 2012 by OriginalGriff
And why would you want that?I can't think of many legitimate reasons for wanting that particular combination of features...
29 Aug 2014 by OriginalGriff
Yes: I have seen eight monitors connected to a single PC - you may need to see if the video card you are using supports it however.Once you have them connected and the driver configured to show them in the correct place, they will act as a single monitor as far as screen addressing is...
5 Sep 2014 by OriginalGriff
No, you can't.L1, L2, L3 caches are typically inside the processor silicon in multicore processors: "normal" memory (which is what the System.Runtime.Caching namespace is concerned with) is external to the processor and is not a part of L1, L2, or L3...
6 Sep 2014 by OriginalGriff
Um.CPU registers don't have addresses: they aren't part of the "normal" memory, they are specific places in the processor which can hold values (normally but not necessarily integer) which can be interpreted as memory addresses. But except for some rather odd processors you cannot take the...
2 Nov 2014 by OriginalGriff
The Program Counter (or PC) is a hardware register - it's a part of the CPU and you can;t normally access it at all from a high level language - you can from assembler, where you only have the CPU registers to play with and do most of your memory accesses via those registers.You can;t load...
3 Apr 2016 by OriginalGriff
Physically? Loads of things, including a whole number of other processors...The HDD data itself is stored in magnetic bits, which are read by a magnetic head which floats a tiny distance above the surface of a spinning disk: small changes in the magnetism of the disk surface are detected by...
6 Sep 2018 by OriginalGriff
a) Is simple: test before you push, not after. At the moment, you read the value, poush it, and then decide to repeat. You need to read it, test, it if it's zero exit the loop, otherwise push and go round again. b) I'm not at all familiar with the assembly code: so I can't be precise. But ......
18 Jun 2021 by OriginalGriff
Under normal circumstances, no. If the leak became extreme so that all available non-virtual memory was used, then paging could drive up CPU usage taking care of it, but you wouldn't notice that because the disk thrashing would be orders of...
26 Aug 2021 by OriginalGriff
It's not just the CPU you need to check (in fact that's about the last thing!) You need to look at the motherboard - these are normally the limiting factor for RAM fitment, and all the Acer machines I've ever looked at were shipped with the max...
29 May 2023 by OriginalGriff
This probably needs to be asked in the dedicated forum: CodeProject.AI Discussions[^]
22 Jun 2020 by Patrice T
Quote: i need to control the cpu and gpu usage by percentage how do i do it? Basically, you don't, it is a bad idea. Such feature is a dream for any malware, that's why it is the OS's job to manage those resources. Said otherwise, it is a bad...
17 Jan 2014 by Paul Lindberg
This case study details how the game takes best advantage of low-power systems, while still scaling up to look and run fantastic on more robust systems.