cpu

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

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 availa...

multithreading in c#

hi i am new to threading. my boss gave me a scenario.we have a list of object which is 0f 70gb,we want to load it from a database.it takes time i want to utilize cpu(multi threading) in this scenario .i.e partializing data ,load first part, than second part,whensecond part is loaded mean while first part is processed, what i shuld do ple...

Can IIS 6.0 show server status just like tomcat

the server status might contain: CPU Usage, Memory Usage and other server's status data. any recommendations ? ...

How many threadsd i have to use

The scenario is that there is lets say 1 TB of objects each of ten mb in database. I have a function named MATCH() which has a query object, whose return type is double, and in this function I have mathematical calculations. I have a check that if the value of the result is in between 0 and 1 then i have: double[ ] Result=new double[eg...

Intel has just unveiled a new 48 core CPU. What will this move to many cores imply for us programmers?

Intel has just unveiled a new 48 core CPUs. More than just the number of cores, this new architecture seems to introduce a lot of interesting features, such as this one: Things get interesting here - Intel is saying that they have removed hardware cache coherency which effectively means each "tile" will be completely separate in what...

How to calculate MySQL Query Memory/CPU Cost

Is there a way/tool/technique to calculate the processor and memory cost of a specific MySQL query? ...

SQL Server stops processing for 20 seconds

I can't figure this one out. On SQL Server I have a process that is run dozens of times per second (data being sent to the server). The process runs great, processing requests takes between 50ms and 200ms. Then, roughly (but sporadically) once every 1.5 minutes all requests suddenly take 15000ms to 22000ms (15 to 22 seconds). At the same...

How do you detect the CPU architecture type during run-time with GCC and inline asm?

Hello, I need to find the architecture type of a CPU. I do not have access to /proc/cpuinfo, as the machine is running syslinux. I know there is a way to do it with inline ASM, however I believe my syntax is incorrect as my variable iedx is not being set properly. I'm drudging along with ASM, and by no means an expert. If anyone has an...

How to check website cpu usage programmatically?

Does anyone know how to check the CPU usage of a website in IIS or by any other means? Thanks very much. ...

multi core and parallel processing

what is the difference between parallel processing and multi core processing ...

Background threads consuming 100% CPU on iPhone 3GS causes latent main thread

In my application I am executing 10 asynchronous NSURLConnections within an NSOperationQueue as NSInvocationOperations. In order to prevent each operation from returning before the connection has had a chance to finish I call CFRunLoopRun() as seen here: - (void)connectInBackground:(NSURLRequest*)URLRequest { TTURLConnection* connecti...

CUDA fallback to CPU?

I have a CUDA application that on one computer (with a GTX 275) works fine and on another, with a GeForce 8400 works about 100 times slower. My suspicion is that there is some kind of fallback that makes the code actually run on the CPU rather than on the GPU. Is there a way to actually make sure that the code is running on the GPU? I...

Linux: How to put a load on system memory?

I'm working on a small function, that gives my users a picture of how occupied the CPU is. I'm using cat /proc/loadavg, wich returns the wellknown 3 numbers. My problem is that the CPU doesn't do anything right now, while I'm developing. Is there a good way to generate som load on the CPU, I was thinking something like makecpudosomethi...

Is SQL Server changing to per core licensing?

I heard a rumor that Microsoft was going to change SQL Server 2008 R2 to per core licensing, instead of per processor/socket. Has anyone else heard this? Is there any truth to this rumor? Please cite a source if possible, especially if you believe this is changing. ...

Is it possible that a single-threaded program is executed simultaneously on more than one CPU core?

When I run a single-threaded program that i have written on my quad core Intel i can see in the Windows Task Manager that actually all four cores of my CPU are more or less active. One core is more active than the other three, but there is also activity on those. There's no other program (besided the OS kernel of course) running that wou...

How instructions are differentiated from data?

Hi, While reading ARM core document, I got this doubt. How does the CPU differentiate the read data from data bus, whether to execute it as an instruction or as a data that it can operate upon? Refer to the excerpt from the document - "Data enters the processor core through the Data bus. The data may be an instruction to execu...

Why is my C++ app faster than my C app (using the same library) on a Core i7

I have a library written in C and I have 2 applications written in C++ and C. This library is a communication library, so one of the API calls looks like this: int source_send( source_t* source, const char* data ); In the C app the code does something like this: source_t* source = source_create(); for( int i = 0; i < count; ++i ) ...

need help in choosing a pc to run my flash-kiosk-app on - what cpu factors affect flash performance?

hey all i am a self-taught actionscript 3 programmer and i have written a gaming-app to run on an all-in-one touchscreen pc in fullscreen kiosk mode. this project is a "garage business" meaning i learn as i go and i dont have any of the resources of a full company ("only" a great idea and a great app). my question regards flash/air cpu...

How to use GetNumaProximityNode (Win7+)?

Starting with Win7/Server2008R2 the GetNumaProximityNode(Ex) function is available. It should help retrieve the distance between NUMA nodes, but I can't understand from the documentation (http://msdn.microsoft.com/en-us/library/ms683206(VS.85).aspx) how it's supposed to work. It says that you give it a distance, and it returns the corres...

Are there any CPU considerations while porting iPod apps to iPad?

I'm wondering what are the things to keep in mind when porting iPod apps to iPad, considering the new CPU and capabilites? Would you have recommendations for a newbie before attempting such a task? ...