processor

Dedicating all processor power to a task

Let's say we have a very processor-intensive task at hand which could be effectively parallelized. How can we dedicate all or almost all available processor power to performing that task? The task could be a variety of things, and iterative Fibonacci number generation that saves recorded numbers would be just one example. ...

Physical cache vs Logical cache

What is the pros and cons of: - Physical cache (between MMU and Memory) - Logical cache (between CPU and MMU) from a programmer's view? How to get the best of each of them? Thanks ...

How to generate unique serial number of machine in Delphi?

Hi, I have question how to generate unique serial number of machine in Delphi? I tried to do this using the ID the motherboard or processor, but unfortunately it's unfortunately supported. Partition serial numbers, etc. fall off, because it is changing after the formatted. I'm looking for something that doesn't change after the formatt...

How to share a process?

How can I snuggle into another process? Like, share another process's name? So if my application is griddemo.exe, and I want to snug into, let's say, explorer.exe, is that possible? Just read something about CreateRemoteThread() from kernel32. Is that in the right direction? Would there be security/UAC issues? ...

Lowest context switch time

Which processor has the best context switch time ? ...

Throughput calculation using cycle count

Is it possible to determine the throughput of an application on a processor from the cycle counts (Processor instruction cycles) consumed by the application ? If yes, how to calculate it ? ...

Determining the load on a particular core in a multicore processor

In a multicore processor, there are ways to tell the particular application to run in either single core or 2 cores or 3 cores. Considering a scenario in which the application(having lot threads) is running on more than one core, how will a scheduler be able to determine the load(number of threads) on a particular core in a multicore pro...

Communication between processor and high speed perihperal

Considering that a processor runs at 100 MHz and the data is coming to the processor from an external device/peripheral at the rate of 1000 Mbit/s (8 Bits/Clockcycle @ 125 MHz), which is the best way to handle traffic that comes at a higher speed to the processor ? ...

Polling or Interrupt based method

When should one use polling method and when should one use interrupt based method ? Are there scenarios in which both can be used ? ...

The prefetch instruction

It appears the general logic for prefetch usage is that prefetch can be added, provided the code is busy in processing until the prefetch instruction completes its operation. But, it seems that if too much of prefetch instructions are used, then it would impact the performance of the system. I find that we need to first have the working ...

Processor can support/require an RTOS ?

I have few queries related with going in for an RTOS for the different processors in hand. These are generic questions. Maybe you can clarify with examples specific to any processor/rtos or even generally. How to determine if a processor can support a RTOS ? How to know if the processor requires a RTOS ? ...

Polling and interrupt based methods for packet processing in multicore processor

This query is related with the packet processing in multicore processors. Packet processing can be either in Linux or pure datapath. Is it true that if the packet processing application is on Linux, then it must be interrupt based processing of packets for high performance, but if the packet processing is in pure datapath (without linux)...

Handling many sources of interrupts

Consider that there are 100 plus ways of interrupts occuring from various sensors. There are chances that all can occur at the same time too. How can the software be designed to handle it efficiently ? ...

How can i put a web word processor on my site?

How would I implement a word processor on a website I'm making? The point is I want a user to be able to type in text and it have syntax highlighting in the text box they're typing in. Could someone instruct me in how to do this? ...

Identify processor (core) is used by specific thread

Hello, World! I would like to know if it is possible to identify physical processor (core) is used by thread with specific thread-id? For example, I have an multithreaded application that has 2 threads (threadid = 10 and threadid = 20, for instance). I run the application on a system that has a dual core processor (core 1 and core 2)....

The direction of stack growth and heap growth

In some systems, the stack grows in upward direction whereas the heap grows in downward direction and in some systems, the stack grows in downward direction and the heap grows in upward direction. But, Which is the best design ? Are there any programming advantages for any of those two specific designs ? Which is most commonly used and w...

Why ThreadPool has 250 worker threads per processor by default?

Taken from Microsoft documentation: By default, the thread pool has 250 worker threads per available processor. You can change this setting using the ThreadPool.SetMaxThreads method. It's also said, as it's widely known, that there is some overhead: Threads have some level of overhead. Therefore, if a computer has multiple pr...

Why are 8 and 256 such important numbers in computer sciences?

I don't know very well about RAM and HDD architecture, or how electronics deals with chunks of memory, but this always triggered my curiosity: Why did we choose to stop at 8 bits for the smallest element in a computer value ? My question may look very dumb, because the answer are obvious, but I'm not very sure... Is it because 2^3 allo...

Retrieving the number of physical core processors

I know I can use System.Environment.ProcessorCount to return the number of "processors" in a machine. What I am trying to do is find out if there is a way to determine the number of cores in the processor, not including hyperthreading as a "core". For example, on a dual core hyperthreading processor, System.Environment.ProcessorCount wil...

polling based method

How the polling based method is supported by the processor?? How many devices I can set for polling based and interrupt based mode?? My understanding is: If poll interval of a device AA is 100ms. After every 100ms the processor polls(check the status of the device) that device and process it if required otherwise it will switch to...