processor

How to get the number of processors on a 64-bit machine?

How can I find the number CPUs on 64 bit window 2003 servers? The answers in this thread did not work. Using Win32_ComputerSystem.NumberOfProcessors returns none. I would prefer a way to do it using WMI if possible. I have a script that already his all the machines I need this info from grabbing disk info. Thanks ...

C# WinForms App Maxing Processor But Doing Nothing Strenuous!

I have a netbook with 1.20Ghz Processor & 1GB Ram. I'm running a C# WinForms app on it which, at 5 minute intervals, reads every line of a text file and depending on what the content of that line is, either skips it or writes it to an xml file. Sometimes it may be processing about 2000 lines. When it begins this task, the processor get...

Any good resource on processor scheduling/programming for Mac OS X?

Looking for some tutorials or documentation about the more advanced fine tuning of processor management in Objective C for programming in the Mac OS system. Things such as writing a process that works well with other processes and the way the Mac OS handles processes and processor scheduling. ...

Processor, OS : 32bit, 64 bit

I am new to programming and come from a non-CS background (no formal degree). I mostly program winforms using C#. I am confused about 32 bit and 64 bit.... I mean, have heard about 32 bit OS, 32 bit processor and based on which a program can have maximum memory. How it affects the speed of a program. There are lot more questions which k...

What is the best way for interprocessor communication in Linux?

I have two CPUs on the chip and they have a shared memory. This is not a SMP architecture. Just two CPUs on the chip with shared memory. There is a Unix-like operating system on the first CPU and there is a Linux operating system on the second CPU. The first CPU does some job and the result of this job is some data. After first CPU fin...

Determine on which physical processor my code is currently running

Is there a Windows API or any way to determine on which physical processor/core my current thread runs? I don't need that information. I'm just curious. Edit: I'm not interested in the processors the thread is allowed to run on. I would like to know on exactly which one it currently runs. I know that the threads switch pretty fast from ...

How can I create an executable to run on a certain processor architecture (instead of certain OS)?

So I take my C++ program in Visual studio, compile, and it'll spit out a nice little EXE file. But EXEs will only run on windows, and I hear a lot about how C/C++ compiles into assembly language, which is runs directly on a processor. The EXE runs with the help of windows, or I could have a program that makes an executable that runs on a...

how to set CPU affinity of a particular pthread?

Hi, 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 impossible? If not, can you send a pointer ple...

How do we determine if a processor is 8-bit; 16-bit or 32-bit

Is it determined by size of the address buss; if yes then was 8086 a 20-bit processor? If no what is criteria for assigning a bit number like 8-bit, 16-bit, 32-bit to processor? ...

Processor Utilization by threads spawned by a program

I have a java program which spawns multiple threads say, 10-20 threads. This program is scheduled to be run on a machine that has 32 processors. I am keen to know if all the processors' power would be utilized by these threads. Solaris is the environment; does that make any difference? ...

.NET Framework get running processor architecture

There is an enum of all supported processor architectures here: http://msdn.microsoft.com/en-us/library/system.reflection.processorarchitecture.aspx Is there any way to determine which one corresponds to the running environment? System.Reflection.Assembly.GetExecutingAssembly().ProcessorArchitecture returns MSIL -- obviously wrong. EDI...

mips assembly question

does anyone know how the CPU determines which register should receive the result produced by an instruction? anyone??? ...

Determine at runtime if Windows CE operating system is built against a particular processor type (eg. ARMV4/ARMV4I/ARMV4T)

Is there a way to determine if a Windows CE operating system is targeted against ARMV4 or ARMV4I or ARMV4T. I am aware of the IsProcessorFeaturePresent() API call on coredll however as far as I can tell, it only allows you to determine the presence of the thumb instruction set. What I really want to detect is if the O/S is built with ...

Detect system architecture (x86/x64) while running

Is it possible to detect the system/processor architecture while the program is running (under windows and under linux) in c++? ...

what is difference between Superscaling and pipelining ?

Well looks too simple a question to be asked but i asked after going through few ppts on both. Both methods increase instruction throughput. And Superscaling almost always makes use of pipelining as well. Superscaling has more than one execution unit and so does pipelining or am I wrong here? ...

What form is DLL & what makes it processor dependent

I know DLL contains one or more exported functions that are compiled, linked, and stored separately.. My question is about not about how to create it.. but it is all about in what form it is stored.. Is it going to be in the form of 0's & 1's.. or in assembly commands ADD, MUL, DIV, MOV, CALL, RETURN etc.. Also what makes it to be proc...

Testing Equipment for VOIP,IPTV and IP data analysis

Hi Geeks, I am planning to make an handheld device which can be used for VOIP,IPTV and IP data analysis. I am providing the features I need to test with that handheld device. IPTV - A media player to play IP video, the equipment should emulate the STB, channel zapping,IGMP,jitter, packet loss VOIP - A voip caller applicat...

Way to synchronize two cores in simulation

Hi guys, I have to build a dual-core processor simulator in C (it's actually a multilevel memory simulation, cache L1/L2, block substitution, etc). Thing is, I'm having a hard time figuring a way to synchronize the cores (which I'm programming as threads). Any ideas how I could do a global clock? Should I change from threads to child pro...

Is the ability to recurse a function of the processor or the programming language/compiler or both?

Is the ability to recursively call a function a capability inherent of the processor or the programming language/compiler. Perhaps, both need elements to support recursion? I've always been under the impression that the ability to recursively call a function is purely implemented in the programming language and how it lays out its runti...

PowerPC initialization

Hi! Does someone know how to initialize a PowerPC 32-bit processor (e.g. PPC-440), similar to Intel's x86 protected mode switch and consequent initialization of address tables and the like? Is there documentation about the first steps an OS should take care of on these processors? Regards, ...