Все вопросы: [cpu]

126 вопросов

1
голосов
6ответов
6717 просмотров

Conditional Jump instructions?

Doing a compiler design course: What is meant by a conditional jump instruction? I am C/C++ based programmer so if there is any code samples in that paradigm you could share to help me understand this better. What do they mean by unlimited conditional jump instructions? An example of a stateme...

1
голосов
2ответов
1269 просмотров

How many instructions per cycle do AMD K8 CPUs have?

How many instructions per cycle do AMD K8 (preferably AMD Turion x2 64, if it matters) CPUs have? I looked everywhere and I can't find it.

5
голосов
3ответов
6707 просмотров

DispatcherTimer eating up CPU over time causing WPF visual not rendering properly

I have a WPF app that uses DispatcherTimer to update a clock tick. However, after my application has been running for approx 6 hours the clocks hands angles no longer change. I have verified that the DispatcherTimer is still firing with Debug and that the angle values are still updating, however...

2
голосов
2ответов
2128 просмотров

Does a one cycle instruction take one cycle, even if RAM is slow?

I am using an embedded RISC processor. There is one basic thing I have a problem figuring out. The CPU manual clearly states that the instruction ld r1, [p1] (in C: r1 = *p1) takes one cycle. Size of register r1 is 32 bits. However, the memory bus is only 16 bits wide. So how can it fetch all da...

6
голосов
4ответов
8733 просмотров

FLOPS Intel core and testing it with C (innerproduct)

I have some misconceptions about measuring flops, on Intel architecture, is a FLOP one addition and one multiplication together? I read about this somewhere online and there is no debate that could reject this. I know that FLOP has a different meaning on different types of cpu. How do I calculat...

6
голосов
4ответов
1735 просмотров

Is an Intel i7 (4 cores, 8 HT-based logical cores) better than an Intel Core 2 Quad for VisualC++ development?

I have to make a recommendation to management regarding whether or not we should spend the extra money to purchase new computers with Intel i7 CPUs (i7 950s) or whether we should buy Intel Core 2 Quad processors (Q9550s or something equivalent.) Our main task are Microsoft Visual C++ development...

89
голосов
8ответов
133348 просмотров

Linux Process States

In Linux, what happens to the state of a process when it needs to read blocks from a disk? Is it blocked? If so, how is another process chosen to execute?

1
голосов
1ответов
883 просмотров

Lookup CPU type in .NET Compact Framework

I need to be able to lookup the type of CPU that my application is running from a .NET Compact Framework application. Basically, I need to know if I'm on an ARM, SH4, x86, etc processor.

4
голосов
4ответов
11626 просмотров

How to detect iPhone CPU speed?

I have an aesthetic UI element, a reflection, that works well on the iPhone 3Gs and iPod Touches, but is too slow on the 3G and prior. How best can I detect CPU speed so I can disable this function?

6
голосов
1ответов
3288 просмотров

How to get max CPU clock in Java

with Runtime.getRuntime().availableProcessors(); I can get the numbers of CPU avaiable. But how can I get their clock frequency? I was searching for a os-indipendent solution.

0
голосов
1ответов
1482 просмотров

How to programmatically control the CPU utilization by an C# winform application

Is there any way we can cap the maximum allowed CPU utilization by a windows application developed in C# .NET apart from the thread mentioned at posting controlling CPU utilization

56
голосов
5ответов
76498 просмотров

how to set CPU affinity of a particular pthread?

I'd like to specify the cpu-affinity of a particular pthread. All the references I've found so far deal with setting the cpu-affinity of a process (pid_t) not a thread (pthread_t). I tried some experiments passing pthread_t's around and as expected they fail. Am I trying to do something impossibl...

24
голосов
5ответов
18900 просмотров

Programmable USB dongles

Where can I buy a programmable USB dongle that supports C as a development language?

2
голосов
2ответов
254 просмотров

Programs run in 2 seconds on my machine but 15 seconds on others

I have two programs written in C++ that use Winsock. They both accept TCP connections and one sends data the other receives data. They are compiled in Visual Studio 2008. I also have a program written in C# that connects to both C++ programs and forwards the packets it receives from one and sends...

3
голосов
3ответов
4350 просмотров

Multi-threaded Queue in C#

I've been tasked with working on a download queuing system but I'm a bit confused about where to start. Essentially what we need to do is to have something like a download manager (but not as fully blown). We have about 20-100 files to download, we give the user a UI (with a listview) to allow t...

4
голосов
4ответов
2785 просмотров

Is the stack width always same as CPU register size?

For example, for a 8-bit CPU, the stack size is expected to be 8-bit wide, and 16-bit CPU vs 16-bit stack width, and 32-bit, 64-bit CPU, and so on. Is it true for all architectures?

2
голосов
2ответов
133 просмотров

CPU consumption equivalent for harddisk scanning

I would like my software that scans disk structure to work in background but lowing the priority for the thread that that scans disk structure doesn't work. I mean you still have the feeling of the computer hard working and even freezing even if your program consumes only 1 percent of the process...

9
голосов
5ответов
13435 просмотров

Detect CPU Speed/Memory/Internet Speed using Java?

Is it possible within Java to identify the total CPU speed available as well as the total system memory? Network connection speed to the web would also be awesome.

5
голосов
7ответов
8310 просмотров

Elegant and safe way to determine if architecture is 32bit or 64bit

As title says, is there any elegant and safe way to determine if architecture is 32bit or 64bit. By elegant, you can think of precise, correct, short, clean, and smart way. By safe, think of safe in term of standard, C89/C99, and operating system independence.

3
голосов
4ответов
327 просмотров

Is there any .Net JIT Support from chip vendors?

I know that ARM actually has some support for Java and SUN obviously, but I haven't really references seen any chip vendor supporting a .Net JIT compiler. I know IBM and Intel both support C compilers, as well as TI and many of the embedded chip vendors. When you think of it, all a JIT compiler...

6
голосов
7ответов
7292 просмотров

How can i access the Intel CPU Counter

Is there any small tool that gives me access to the data gathered by the Intel CPU Counters (like L1/L2 cache misses, branch prediction failures ... you know there are hunderts of them on modern Core2 CPU's). It must work on Windows (while being able to use it with Solaris, FreeBSD, Linux, MacO...

0
голосов
5ответов
1401 просмотров

Is there any relation between CPU and threads?

If there is, what is the relation?

2
голосов
1ответов
1346 просмотров

Number of CPU sockets, or location of SMBIOS on OS X

I would like to find the number of cpu sockets on OS X machines. This information is normally in the SMBIOS on pc's. Newer Intel Macs use EFI but I have read that the EFI does also contain an SMBIOS block. I therefore appear to need access to the SMBIOS data block on power pc machines, and the ...

4
голосов
5ответов
17596 просмотров

In Windows PowerShell, How Can You Set the Maximum CPU % for the Script to Use?

I am looking to limit the percentage of the CPU time used by a PowerShell process to a certain number -- for the sake of argument, let's imagine it to be 13%. Other options that are not precisely what I need: 1) Setting priority. 2) Setting CPU affinity. Basically, we have monitoring software w...

11
голосов
9ответов
22176 просмотров

Alignment along 4-byte boundaries

I recently got thinking about alignment... It's something that we don't ordinarily have to consider, but I've realized that some processors require objects to be aligned along 4-byte boundaries. What exactly does this mean, and which specific systems have alignment requirements? Suppose I have...

3
голосов
8ответов
1308 просмотров

CPU Stuck at 100% on Customer PC, any debugging suggestions?

I'm having a dead-end situation with one of the clients using my software. Out of about 40 copies of our product sold (Application programmed in .NET 2.0 using VB.NET 2005), about 2 get non-responsive with 1 core of the dual core CPUs stuck at 100% (program uses 1 core only) The most logical gue...

43
голосов
9ответов
29632 просмотров

Throttling CPU/Memory usage of a Thread in Java?

I'm writing an application that will have multiple threads running, and want to throttle the CPU/memory usage of those threads. There is a similar question for C++, but I want to try and avoid using C++ and JNI if possible. I realize this might not be possible using a higher level language, but...

2
голосов
3ответов
2599 просмотров

How to Find CPU Utilization of a Single Thread within a Process

I am looking a Tool on How to Find CPU Utilization of a Single Thread within a Process in VC++. It would be great full if any one could provide me a tool. Also it could be better if you guys provide how to do programmatically. Thank you in Advance.

2
голосов
2ответов
833 просмотров

CPU load of the running process

I need to programmatically know (c/c++) what is the instant CPU load of the current running process. Win32 API offers a lot of low level API but I am unable to find one that gives me the current CPU load of my running c/c++ program. The question is: how to programmatically know how many percents...

5
голосов
4ответов
282 просмотров

Will a task be completed faster if it is the active window?

I have heard a myth that a job will finish faster if it is kept as the active window, and not in the background or minimized. Is there any truth to this? Does the CPU put precedence to tasks where this happens? Thanks,