¡@

Home 

c++ Programming Glossary: cpu

How do I convert between big-endian and little-endian values in C++?

http://stackoverflow.com/questions/105252/how-do-i-convert-between-big-endian-and-little-endian-values-in-c

point values and 32 bit and 64 bit integers from one CPU architecture to another. This doesn't involve networking so..

Best open XML parser for C++ [closed]

http://stackoverflow.com/questions/170686/best-open-xml-parser-for-c

games or any other applications where available memory or CPU processing power comes at a premium. RapidXML is licensed under.. of strlen function executed on the same data. On a modern CPU as of 2008 the parser throughput is about 1 billion characters..

Why is volatile not considered useful in multithreaded C or C++ programming?

http://stackoverflow.com/questions/2484980/why-is-volatile-not-considered-useful-in-multithreaded-c-or-c-programming

barrier which indicates both to the compiler and the CPU that no memory access may be reordered across this point . Placing..

What is the bit size of long on 64-bit Windows?

http://stackoverflow.com/questions/384502/what-is-the-bit-size-of-long-on-64-bit-windows

that long are indeed 64 bits when compiling for a 64 bit CPU. I looked up what it was on 64 bit Windows and found Windows.. if not on Windows and otherwise do a check on the target CPU bitsize c c windows 64bit porting share improve this question..

How to determine CPU and memory consumption from inside a process?

http://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process

to determine CPU and memory consumption from inside a process I once had the.. RAM currently used RAM currently used by my process CPU currently used CPU currently used by my process The code had.. used RAM currently used by my process CPU currently used CPU currently used by my process The code had to run on Windows..

Why is one loop so much slower than two loops?

http://stackoverflow.com/questions/8547778/why-is-one-loop-so-much-slower-than-two-loops

severely depends on the sizes of the arrays n and the CPU cache. So if there is further interest I rephrase the question.. also be interesting to point out the differences between CPU cache architectures by providing a similar graph for these CPUs... cache architectures by providing a similar graph for these CPUs. PPS The full code is at http pastebin.com ivzkuTzG . It uses..

What is the difference between _tmain() and main() in C++?

http://stackoverflow.com/questions/895827/what-is-the-difference-between-tmain-and-main-in-c

of bytes 0 followed by the ASCII value. And since the x86 CPU is little endian the order of these bytes are swapped so that..

Why is reading lines from stdin much slower in C++ than Python?

http://stackoverflow.com/questions/9371238/why-is-reading-lines-from-stdin-much-slower-in-c-than-python

readline_test.py 0.03user 2.04system 0 28.06elapsed 7 CPU 0avgtext 0avgdata 2464maxresident k 0inputs 0outputs 0major.. 0.03user 1.64system 0 08.10elapsed 20 CPU 0avgtext 0avgdata 2464maxresident k 0inputs 0outputs 0major.. readline_test_fgets 0.00user 0.93system 0 07.01elapsed 13 CPU 0avgtext 0avgdata 2448maxresident k 0inputs 0outputs 0major..

C++ Socket Server - Unable to saturate CPU

http://stackoverflow.com/questions/1234750/c-socket-server-unable-to-saturate-cpu

on a Amazon EC2 instance and getting about 50 usage of one cpu 20 of another and the remaining two are idle according to htop..

How to get the cpu usage per thread on windows (win32)

http://stackoverflow.com/questions/1393006/how-to-get-the-cpu-usage-per-thread-on-windows-win32

to get the cpu usage per thread on windows win32 Looking for Win32 API functions.. inside my program. c delphi winapi multithreading cpu usage share improve this question You must use these functions.. this question You must use these functions to get the cpu usage per thread and process. GetThreadTimes Retrieves timing..

Detecting CPU architecture compile-time

http://stackoverflow.com/questions/152016/detecting-cpu-architecture-compile-time

all the boilerplate #ifdef s c c architecture compiler cpu share improve this question Here is some information about..

What is “cache-friendly” code?

http://stackoverflow.com/questions/16699247/what-is-cache-friendly-code

I write cache efficient code c performance caching memory cpu cache share improve this question Preliminaries Modern computer..

Programatically detect number of physical processors/cores or if hyper-threading is active on Windows, Mac and Linux

http://stackoverflow.com/questions/2901694/programatically-detect-number-of-physical-processors-cores-or-if-hyper-threading

#include iostream #include string using namespace std void cpuID unsigned i unsigned regs 4 #ifdef _WIN32 __cpuid int regs.. std void cpuID unsigned i unsigned regs 4 #ifdef _WIN32 __cpuid int regs int i #else asm volatile cpuid a regs 0 b regs 1.. 4 #ifdef _WIN32 __cpuid int regs int i #else asm volatile cpuid a regs 0 b regs 1 c regs 2 d regs 3 a i c 0 ECX is set to..

How to get current CPU and RAM usage in C++?

http://stackoverflow.com/questions/479722/how-to-get-current-cpu-and-ram-usage-in-c

CPU usage Is there a platform indepentent function call c cpu usage ram share improve this question There is an open source..

How to get IOStream to perform better?

http://stackoverflow.com/questions/5166263/how-to-get-iostream-to-perform-better

Ubuntu 11.10 3.5.0 25 generic x86_64 enough ram cpu 196MB of several find largefile.txt runs C 634572 C 473222 C..

How to determine CPU and memory consumption from inside a process?

http://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process

I found by trial and error here in one place. c c memory cpu share improve this question Windows Some of the above values.. used #include TCHAR.h #include pdh.h static PDH_HQUERY cpuQuery static PDH_HCOUNTER cpuTotal void init PdhOpenQuery NULL.. pdh.h static PDH_HQUERY cpuQuery static PDH_HCOUNTER cpuTotal void init PdhOpenQuery NULL NULL &cpuQuery PdhAddCounter..

Windows 7 timing functions - How to use GetSystemTimeAdjustment correctly?

http://stackoverflow.com/questions/7685762/windows-7-timing-functions-how-to-use-getsystemtimeadjustment-correctly

10000 WARNING This code consumes 100 of the cpu for 20 file time increments. At the standard file time increment..

Circular shift operations in C++

http://stackoverflow.com/questions/776508/circular-shift-operations-in-c

1 Clarification rol ror are the bitshift operators of the cpu. the one represents the amount. You can use normal variable..

Programmatically get the cache line size?

http://stackoverflow.com/questions/794632/programmatically-get-the-cache-line-size

you can get this information out of sys sys devices system cpu cpu0 cache This directory has a subdirectory for each level.. can get this information out of sys sys devices system cpu cpu0 cache This directory has a subdirectory for each level of cache... level number_of_sets physical_line_partition shared_cpu_list shared_cpu_map size type ways_of_associativity This gives..

how to achieve 4 FLOPs per cycle

http://stackoverflow.com/questions/8389648/how-to-achieve-4-flops-per-cycle

precision per cycle be achieved on a modern x86 64 Intel cpu As far as I understand it take 3 cycles for an sse add and 5.. 5 cycles for a mul to complete on most of the modern Intel cpu's see e.g. Agner Fog's 'Instruction Tables' . Due to pipelining..