cpu

What does the number of ways of a processor mean

Hello, I am doing some hardware work and I do not know what is the difference between a 4 way processor and an 8 way processor. Can please anyone clarify what does way mean?. Thanks a lot. ...

Determine whether memory location is in CPU cache.

It is possible for an operating system to determine whether a page of memory is in DRAM or in swap; for example, simply try to access it and if a page fault occurs, it wasn't. However, is the same thing possible with CPU cache? Is there any efficient way to tell whether a given memory location has been loaded into a cache line, or to ...

How CPUs implement Instructions like MUL/MULT?

In different assembly languages MUL (x86)/MULT (mips) refer to multiplication. It is a black box for the programmer. I am interested in how actually a CPU accomplishes a multiplication regardless of the architecture. Lets say I have two 16-bit values in my registers and I am the cpu, so I have to implement MUL using the other bit-fiddlin...

how to find CPU cycle for an assembly instruction

Hello everyone, I heard there is Intel book online which describes the CPU cycles needed for a specific assembly instruction, but I can not find it out (after trying hard). Could anyone show me how to find CPU cycle please? Here is an example, in the below code, mov/lock is 1 CPU cycle, and xchg is 3 CPU cycles. // This part is Platfo...

monitor cpu usage per thread on windows mobile device

Is is possible to measure CPU per thread on a windows mobile (or CE 5) device programmatically (c++)? If not, is their a utility that will monitor the CPU usage of a process? ...

The best 500 word (or less) description of how a CPU works?

What is the best description of the CPU that can fit in 500 words? Submit and vote up actual attempts. Imagine you're explaining it ... to some non-cs grad students over dinner to the smartest, most interested 12 year old you've ever met to a beginning programmer in a high-level language who knows how to count, add, subtract, and mul...

How to maximize power used by my application in C#?

Hi, As I've created the application that is hard on calculations -> lots of work to do, not very complex calculations -> it takes too long to work it out and the process is only at 45% of the CPU. Can I maximize it somehow?: to go to 90%? ...

CPU Usage using WMI & C#

How can i retrieve the current CPU usage in c# using WMI? I've seen plenty of posts using performance counters, but I need a solution that can work with remote machines. I've also found a VB solution here, but I'd prefer to accomplish this in C# if possible. ...

Why is this simple applet using up >50% of my CPU?

I wrote a simple applet to have as a base fr making games, and it's already using up >50% of my CPU. I'm on a 3ghz P4 with 1.5gb ram, so I know it shouldn't take up THAT much. import java.awt.*; import java.applet.*; public class applettest extends Applet implements Runnable { long lastFrame; public void init() { (new T...

low level programming: How does the OS start a new thread/process?

Whenever the bootloader loads the operating system there is presumably only ONE program flow active, right? This would mean, one processor holds the instruction pointer and executes the commands it founds at the position the EIP register points to. At which point and how does the system start to exploit more processes and/or threads (no ...

High performance machine executes SQL queries slower than a normal one?

We have an 8 CPU 2.5GHz machine with 8 GB of RAM than executes SQL quries in slower fashion than a dual core 2.19 GHz with 4GB of RAM? Why is this the case, given that Microsoft SQL server 2000 is installed on both machines ...

How to get thread CPU utilization metrics in Redhat Linux

Dear All, I need to get CPU utilization metrics for all the threads in a process. Operating system = Redhat linux programming language = C++ using POSIX requirements = need to take samples every few seconds indefinetly, not just for one snapshot in time. constraints = not allowed to write additional code in thread I know you can u...

Identifying the CPU architecture type using C#

I want to check which CPU architecture is the user running, is it i386 or X64 or AMD64. I want to do it in C#. I know i can try WMI or Registry. Is there any other way apart from these two? My project targets .NET 2.0! ...

How do I cap my framerate at 60 fps in Java?

I am writting a simple game, and I want to cap my framerate at 60 fps without making the loop eat my cpu. How would I do this? ...

How can I control my PC's fan speed using C++ in Vista?

How can I use C++ to control CPU fan speed in Windows Vista Ultimate? I would like to use ACPI. ...

CPU Cards for Parallel Computation?

I remember reading some time ago that there were cpu cards for systems to add additional processing power to do mass parallelization. Anyone have any experience on this and any resources to get looking into the hardware and software aspects of the project? Is this technology inferior to a traditional cluster? Is it more power consciou...

Will more CPU cache help compliation/development in Visual Studio 2008?

I'm thinking of a new laptop to replace my current machine. I notice a lot of machines have the P8xx and T9xxx Intel Core 2 Duo. The T9xxx have a premium but they have I believe 6 megs of cache compared to the 3 megs in the P8xx. Will this help me for compilation times or any other stat? Should I invest the premium in more RAM than the c...

how to reduce CPU usage of WPF application?

My WPF application used high CPU usage after about 30 minutes, then i break the application to find out what code spent high CPU usage, but i got nothing. Visual Studio 2008 can't display current running code, but i found this in "Call Stack" panel: [In a sleep, wait, or join] mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.T...

CPU Utiliztion per process in Win32 API

I am doing a project on a centralized LAN management system. I need to know how many CPU cycles is each process of a remote PC consuming(as in a Task Manager )so that the network admin can close few processes,in case the CPU utilization of a system in network goes beyond acceptable rates.. I would like to know if there is a Win32 API fo...

Command to find information about CPUs on a UNIX machine

Do you know if there is a UNIX command that will tell me what the CPU configuration for my Sun OS UNIX machine is? I am also trying to determine the memory configuration. Is there a UNIX command that will tell me that? ...