Click here to Skip to main content
15,867,949 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 Score

CPU 

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...
9 Jan 2012 by richard_k
1. Keyloggers are definitely malicious. 2. Writing a program 'in the manner of a keylogger' is also by definition malicious. Why wouldn't you want your program to be discoverable/managable by the user? If you are looking to hide your program from users, you want to hide it for a reason.....
24 Jan 2011 by Nish Nishant
This is one example I got with a quick google:http://www.galacticelectronics.com/Simple4BitCPU.HTML[^]
10 Jan 2012 by Richard MacCutchan
There is no C code that you can add to a program to use less CPU. It will use as much CPU as required by the execution of the instructions in the program. Maybe you need to explain in better detail exactly what problem you are trying to solve, just as long as it's not about hacking.
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.
10 Nov 2020 by Jeremy C. Ong
Accelerate a C++ article with GPU support using Intel's oneAPI
6 Sep 2012 by Sergey Alexandrovich Kryukov
Total CPU usage? I can tell you right away — 100% ;-)[EDIT]And if you need it not total, but per process, you can use the class from System.Diagnostics.PerformanceCounter:http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c[^]Good luck,—SA
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.
22 Apr 2013 by Sergey Alexandrovich Kryukov
You can get this information is you use System.Diagnostics.PerformanceCounter:http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx[^].You can use this introductory CodeProject article to see how to do things: An Introduction To Performance...
22 Apr 2013 by Zoltán Zörgő
Actually all the information you got so far is correct:- Task manager is just a tool to display data. It is not collecting anything- In the background of task manager (and others like this) are system level tools, like WMI, as Mike Meinz highlighted.- And you can access them easily also...
21 Sep 2013 by Zoltán Zörgő
In general it is a bad idea to drive a system at it's limits. But what's the problem with having those per core counters? Aggregate them, and you get an overview. I suggest you check both approaches here:...
25 Sep 2013 by Sergey Alexandrovich Kryukov
In case my comments to the question are still unclear: as soon as you have more threads then the CPU cores (which is usually much, much less then the number of threads the system can possibly handle), adding each thread only degrades performance.Threads are used mostly to implement scenarios...
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...
5 Sep 2014 by Zoltán Zörgő
What???Do you know what CPU cache is? I doubt. At least read wikipedia: http://en.wikipedia.org/wiki/CPU_cache[^]It would be a disaster if one could modify those cache values. CPU cache and runtime cache is totally different things, on totally different level of functionality regarding...
20 May 2011 by i.flower
this instruction must be executed at a privilege level of 0.
21 May 2011 by Richard MacCutchan
I think you're out of luck unless you can elevate yourself to Kernel Mode[^].
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...
1 Sep 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question.The idea is: you can switch the task with the instructions JMP or CALL, and it can happen by hardware interrupts. The essence of things in not in the switch instruction, but in what's the interpretation of the target address of this instructions. So,...
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...
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[^]
26 Apr 2013 by StianSandberg
Hi.1) Open MMC2) File -> Add/Remove snap-in3) In the list of available snap-ins, locate "Performance", mark it and click add4) Expand the treeview and select "Performance" You will then see the performance graph.5) Rightclick the grapch and select "Add counters"Then a windows opens...
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%)
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#[^]::
4 Sep 2014 by Rob Philpott
You can't. Depends on what speed the CPU is clocked at, what instruction set its running, what the JIT does, whether it gets 'inlined' or branched etc.
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...
2 Nov 2014 by Tomas Takac
You are mixing few thing up here. But to answer your question first: Yes, "next application command" is different from "next CPU command - for register". It's like comparing apples and oranges. These two things are on two different levels of abstraction.Program counter is a general term for...
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...
21 Aug 2017 by Wendelius
I'm trying to understand why different tools show different results for CPU utilization. I created a simple loop that should completely consume all CPU resources. However, depending which tool I use for observation of the CPU load I see very different results. The situation is roughly like...
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...
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...
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.
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 ...
24 Jan 2011 by sunil kumar meena
I am looking for information on how to make a 4-bit CPU? Looking to get some details.
10 Jun 2011 by PrafullaVedante
Hi,In my (Windows)application i am creating threads to process the data. These threads are not i/o centric. All threds work on the data in memory. I want the cpu utilization when these threads run. I want to write it in log files. How to do it.Is there any API.Thanks in advance.
10 Jun 2011 by Sergey Chepurin
Concerning Windows API - go to MSDN Windows API overview, select Diagnistics->Performance Counters or Performance Logs and Alerts.Windows SDK 7.0 has a sample in ...\Samples\WinBase\WinNT\PerfLogsAlert:"This particular sample code collects the following data:- Counter data:...
18 Jun 2011 by thexcodec
Hey guys, I am here again with a problem.In my program I need to calculate the current CPU usage.I have searched google and found similar code across multiple websites but it just feels way too complicated for what I need to do AND my CPU never hits 100% usage with this calculation.Not...
18 Jun 2011 by Dr.Walt Fair, PE
Have a look at this link.[^]
19 Jun 2011 by thexcodec
I tried to get the CPU Bus Speed and Multiplier(ratio) and found out that I could not via C#.So I am wondering if anyone knows how to get these with C++ without using Win32_ type libraries.
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.. :)
8 Jul 2011 by ryan20fun
Hi EveryBody.does anybody know what the different switch options do, architecture wise ?here are the options:MACHINE ARM (/MACHINE:ARM)MACHINE EBC (/MACHINE:EBC)MACHINE IA64 (/MACHINE:IA64)MACHINE MIPS (/MACHINE:MIPS)MACHINE MIPS16 ...
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'.
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.
16 May 2012 by Ron1202
I have cluster of 3 nodes and each node has a quad core cpu and a GPUwhy does the performance degrade when i increase number of mpi tasks. and cpu performs better than gpu when number of tasks are increased.Is it because of scheduling capability of cpus ? I am guessing that gpu...
17 Oct 2012 by Sameer Alomari
Hello,I have 2 threads connecting communicating with the server through different ports, if the server is not ready, it's gonna pause for a while (thread.sleep) and retry.The connection attempts is in a while loop, when the first thread starts, the CPU is about 50% utilized, when the second...
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...
17 Oct 2012 by Sameer Alomari
**** Update ****I found that the first thread gets connected without problems, when the second thread attempts to connect, then the CPU is 100% used.It is stuck exactly on If Not ar.AsyncWaitHandle.WaitOne(1500, False) ThenAny help is appreciated!