cpu

Maximum number of threads than can run concurrently in java on a CPU

送分小仙女□ 提交于 2019-12-03 02:58:42
Please I got confused about something. What I know is that the maximum number of threads that can run concurrently on a normal CPU of a modern computer ranges from 8 to 16 threads. On the other hand, using GPUs thousands of threads can run concurrently without the scheduler interrupting any thread to schedule another one. On several posts as: Java virtual machine - maximum number of threads https://community.oracle.com/message/10312772 people are stating that they run thousands of java threads concurrently on normal CPUs. How could this be ?? And how can I know the maximum number of threads

Do normal x86 or AMD PCs run startup/BIOS code directly from ROM, or do they copy it first to RAM? [closed]

独自空忆成欢 提交于 2019-12-03 02:23:58
I understand modern computers have modified Harvard architectures. Can the fact that they can read instructions from somewhere other than where they hold data allow them to fetch instructions directly from ROM chips? Do they load the BIOS to RAM first, or do they execute it directly from the chip? I don't have a computer I can open nearby, so... If I remove ALL the RAM from the memory slots, will the computer be able to start the full BIOS, run the POST stuff and tell me I need RAM? It's funny I've never tried it... EDIT: my intention with this question is to learn whether commercial CPUs (or

What exactly is CPU Time in task manager?

孤街浪徒 提交于 2019-12-03 02:20:54
I have some WCF services that are hosted in a windows service. Yesterday I looked at Task Manager and noticed that the CPU time for my windows service process was over 5 hours, while the majority of all other processes were at 0. What does that mean? Should I be concerned that the CPU Time was 5+ hours? CPU time is an indication of how much processing time that the process has used since the process has started (in Windows: link to a Technet article .) It is basically calculated by: CPU Time of Process = Process Uptime * CPU Utilization of Process For example, if the process has been running

How does cpu communicate with peripherals?

半腔热情 提交于 2019-12-03 01:58:24
问题 i assume cpu has direct access to motherboard's BIOS and RAM.(correct me if i'm wrong) But how does cpu communicate with other hardware like hdds, expansion cards, peripherals, other BIOSes etc.? I know about OS and its drivers, but they are software- they're in RAM. How does cpu communicate with all this hardware on hardware level? Isn't it limited to only motherboard's BIOS and RAM? 回答1: In older architectures, peripherals were accessed via a separate mechanism to memory access with special

What is the relation between CPU utilization and energy consumption?

两盒软妹~` 提交于 2019-12-03 01:33:25
What is the function that describes the relation between CPU utilization and consumption of energy (electricity/heat wise). I wonder if it's linear/sub-linear/exp etc.. I am writing a program that decreases the CPU utilization/load of other programs and my main concern is how much do I benefit energy wise.. Moreover, my server is mostly being used as a web-server or DB in a data-center (headless). In case the data center need more power for cooling I need to consider that as well.. I also need to know what is the effect of CPU utilization on the entire machine power consumption .. Here you can

Once upon a time, when > was faster than < … Wait, what?

半腔热情 提交于 2019-12-03 01:31:05
问题 I am reading an awesome OpenGL tutorial. It's really great, trust me. The topic I am currently at is Z-buffer. Aside from explaining what's it all about, the author mentions that we can perform custom depth tests, such as GL_LESS, GL_ALWAYS, etc. He also explains that the actual meaning of depth values (which is top and which isn't) can also be customized. I understand so far. And then the author says something unbelievable: The range zNear can be greater than the range zFar; if it is, then

Detect current CPU Clock Speed Programmatically on OS X?

人盡茶涼 提交于 2019-12-03 00:17:15
I just bought a nifty MBA 13" Core i7. I'm told the CPU speed varies automatically, and pretty wildly, too. I'd really like to be able to monitor this with a simple app. Are there any Cocoa or C calls to find the current clock speed, without actually affecting it? Edit: I'm OK with answers using Terminal calls, as well as programmatic. Thanks! Yevgeni Try this tool called "Intel Power Gadget". It displays IA frequency and IA power in real time. http://software.intel.com/sites/default/files/article/184535/intel-power-gadget-2.zip You can query the CPU speed easily via sysctl , either by command

What is the role of the OS when JVM executes a Java application? And why do we need the OS?

亡梦爱人 提交于 2019-12-02 22:57:12
I have done some reading on the internet and some people say that Java application is executed by the java virtual machine (JVM). The word "execute" confuses me a little bit. As I know, a non-Java application (i.e: written in C, C++...) can be executed by the Operating system. At the lower level, it means the OS will load the binary program into memory, then direct the CPU to execute instructions in memory. So now with a JVM, what would happen? As I know, JVM (contains a run-time environment) would be called first by the OS. From that point on, the JVM will spawns one (or many) threads for the

Will a CPU process have at least one thread?

*爱你&永不变心* 提交于 2019-12-02 21:06:43
I am aware that threads are used for multi-tasking and they are light weight. But my doubt is lets say I need a process without any multi-tasking. I just created a process. Now will the CPU associate a single thread to the process OR will it execute the process alone without need to have a thread? Please clarify. Regards, Harish Well, that depends on the OS that you're talking about but, for many, the creation of a process includes the act of creating a single thread for that process. That thread is then free to go and create other threads belonging to the process. It makes little sense to

Out of Order Execution and Memory Fences

放肆的年华 提交于 2019-12-02 20:50:24
I know that modern CPUs can execute out of order, However they always retire the results in-order, as described by wikipedia. "Out of Oder processors fill these "slots" in time with other instructions that are ready, then re-order the results at the end to make it appear that the instructions were processed as normal. " Now memory fences are said to be required when using multicore platforms, because owing to Out of Order execution, wrong value of x can be printed here. Processor #1: while f == 0 ; print x; // x might not be 42 here Processor #2: x = 42; // Memory fence required here f = 1 Now