cpu

why does an infinite loop of the unintended kind increase the CPU use?

我怕爱的太早我们不能终老 提交于 2019-12-09 15:12:18
问题 I know an infinite loop to the unintended kind usually causes a high CPU usage. But, I don't quite understand why. Can anyone explain that to me? 回答1: The CPU cannot do anything else while it's executing that loop (which never ends). Even if you're using a pre-emptive multi-tasking system (so that infinite loop will only clog forever its own process or thread), the loop will "eat" its time slice each time the OS's pre-emptive scheduler hands it the CPU for the next slice -- doing nothing, but

How to get CPU's model number like Core i7-860 on Windows?

三世轮回 提交于 2019-12-09 10:21:56
问题 There are many kinds of i7 CPU models as follows: http://en.wikipedia.org/wiki/List_of_Intel_Core_i7_microprocessors#Desktop_processors How to know which version I am using on Windows? 回答1: CPU-Z (freeware) can give you this information. 回答2: Open up "System Information" by Start Menu > Accessories > System Tools > System Information Then once in "System Information" open: System Information > System Summary On the right will be the "Processor", this will give you the full description of your

Batch-file get CPU temperature in °C and set as variable

我们两清 提交于 2019-12-09 05:44:48
问题 How do i get a batch-file to work out the temperature of the Cpu and return it as a variable. I know it can be done as i have seen it been done. The solution can use any external tool. I have looked on Google for at least 2 hours but found nothing. Can any one help. Thanks. 回答1: Here is an example which keeps the decimal values and uses the full conversion value. Code @echo off for /f "skip=1 tokens=2 delims==" %%A in ('wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get

Trace of CPU Instruction Reordering

偶尔善良 提交于 2019-12-09 05:04:28
问题 I have studied a few things about instruction re-ordering by processors and Tomasulo's algorithm. In an attempt to understand this topic bit more I want to know if there is ANY way to (get the trace) see the actual dynamic reordering done for a given program? I want to give an input program and see the "out of order instruction execution trace" of my program. I have access to an IBM-P7 machine and an Intel Core2Duo laptop. Also please tell me if there is an easy alternative. 回答1: You have no

High CPU usage with XNA

孤街醉人 提交于 2019-12-09 04:55:29
问题 I just noticed today, that when I compile and run a new XNA 4.0 game, one of CPU threads is running at 100% and the framerate drops to 54 FPS. The weird thing is that sometimes it works at 60 FPS, but then it just drops to 54 FPS. I haven't noticed this behaviour before, so I don't know if this is normal. I uninstalled my antivirus and reinstalled XNA Game Studio, XNA Redistributable and .NET Framework 4. If I set IsFixedTimeStep to false, the game runs at 60 FPS and CPU usage is minimal (1-2

Will multi threading provide any performance boost?

*爱你&永不变心* 提交于 2019-12-09 04:39:11
问题 I am new to programming in general so please keep that in mind when you answer my question. I have a program that takes a large 3D array (1 billion elements) and sums up elements along the various axis to produce a 2D array of a projection of each side of the data. The problem here is that it is very ram intensive as the program is constantly fetching information from the ram, both reading and writing. The question is, will i gain any performance increases if i multithread the program or will

What is the role of the OS when JVM executes a Java application? And why do we need the OS?

假装没事ソ 提交于 2019-12-09 04:20:07
问题 I have done some reading on the internet and some people say that Java application is executed by the java virtual machine (JVM). The word "execute" confuses me a little bit. As I know, a non-Java application (i.e: written in C, C++...) can be executed by the Operating system. At the lower level, it means the OS will load the binary program into memory, then direct the CPU to execute instructions in memory. So now with a JVM, what would happen? As I know, JVM (contains a run-time environment)

Skylake L2 cache enhanced by reducing associativity?

核能气质少年 提交于 2019-12-08 15:58:38
问题 In Intel's optimization guide, section 2.1.3, they list a number of enhancements to the caches and memory subsystem in Skylake (emphasis mine): The cache hierarchy of the Skylake microarchitecture has the following enhancements: Higher Cache bandwidth compared to previous generations. Simultaneous handling of more loads and stores enabled by enlarged buffers. Processor can do two page walks in parallel compared to one in Haswell microarchitecture and earlier generations. Page split load

What exactly is the 'cpumin.exe' process which runs in the background and takes up 100% of the CPU? It happens whenever I run a Java program

时光怂恿深爱的人放手 提交于 2019-12-08 10:45:45
问题 I've been programming in Java this morning, and although I've stopped now, my CPU has been running at 100% even though it should be idle. The task manager shows that a single process called 'cpumin.exe' is causing this. I've traced the file to a folder called 'javacache'. Could anyone please explain what I can do to stop this? As whenever I kill the process, it just starts again. Thanks 回答1: Me too faced this problem before 2-3 days. When I just run my browser(Firefox) cpumin.exe starts and

How can I determine programmatically whether on multi-core, hyperthreading or multi-processor?

瘦欲@ 提交于 2019-12-08 10:40:08
问题 I know how to get the processor type, perhaps that's the only way, but I'm actually looking for a way to determine from an application whether it's running on a multi-core processor or on a hyper-threading single-core processor . (background: the hosting providers of some of my clients are very vague about what resources they make available through VMWare images. This application is supposed to run on multi-core, but has seen detrimental performance since its last "move". Normally, on multi