multicore

Java 8 automatically using multicore?

时间秒杀一切 提交于 2019-12-20 12:38:27
问题 I did some tests a year ago concerning multicore with java 7. First I implemented some calculations only in the main thread (CPU usage showed that only one core did all the work) and then I implemented Callable with an ExecutorService instance. While running it all cores where doing the work. Now, one year, later I have to implement a little programm (using java 8) which interpolates a lot of data. All the work is implemented in the main thread (without Callable and ExecutorService) but when

How do interrupts work on multicore ARM cpu

烈酒焚心 提交于 2019-12-20 09:38:14
问题 This question has already been answered for x86 however, I couldn't find much about ARM MP cpus like Cortex-A9, Cortex-A15 etc... More importantly i want to know if interrupts can be raised on non-primary cpu without any configuration etc. I am working on a software which deals only with the primary cpu hence i put the rest in WFI state however I am unaware of how interrupts work on the MP arm cpus, Is it possible that the main cpu continues executing code and one of the secondary cpu picks

Best programming approach/methodology to assure thread safety

大城市里の小女人 提交于 2019-12-20 08:50:21
问题 When I was learning Java coming from a background of some 20 years of procedural programming with basic, Pascal, COBOL and C, I thought at the time that the hardest thing about it was wrapping my head around the OOP jargon and concepts. Now with about 8 years of solid Java under my belt, I have come to the conclusion that the single hardest thing about programming in Java and similar languages like C# is the multithreaded/concurrent aspects. Coding reliable and scalable multi-threaded

Why doesn't multithreading in C# reach 100% CPU?

谁都会走 提交于 2019-12-20 08:49:37
问题 I'm working on a program that processes many requests, none of them reaching more than 50% of CPU ( currently I'm working on a dual core ). So I created a thread for each request, the whole process is faster. Processing 9 requests, a single thread lasts 02min08s, while with 3 threads working simultaneously the time decreased to 01min37s, but it keeps not using 100% CPU, only around 50%. How could I allow my program to use full processors capability? EDIT The application isn't IO or Memory

Node.js or Erlang

和自甴很熟 提交于 2019-12-20 07:58:48
问题 I really like these tools when it comes to the concurrency level it can handle. Erlang looks like much more stable solution but requires much more learning and a lot of diving into functional language paradigm. And it looks like Erlang makes it much better when it comes to multi cores CPUs(fix me if I'm wrong). But which should I choose? Which one is better in the short/long term perspective? My goal is to learn a tool which makes scaling my web projects under high load easier than

AMD multi-core programming

前提是你 提交于 2019-12-19 07:42:41
问题 I want to start to write applications(C++) that will utilize the additional cores to execute portions of the code that have a need to perform lots of calculations and whose computations are independent of each other. I have the following processor : x64 Family 15 Model 104 Stepping 2 Authentic AMD ~1900 Mhz running on Windows Vista Home premium 32 bit and Opensuse 11.0 64 bit. On the Intel platforms , I've used the following APIs Intel TBB, OpenMP. Do they work on AMD and does AMD have

AMD multi-core programming

梦想与她 提交于 2019-12-19 07:42:21
问题 I want to start to write applications(C++) that will utilize the additional cores to execute portions of the code that have a need to perform lots of calculations and whose computations are independent of each other. I have the following processor : x64 Family 15 Model 104 Stepping 2 Authentic AMD ~1900 Mhz running on Windows Vista Home premium 32 bit and Opensuse 11.0 64 bit. On the Intel platforms , I've used the following APIs Intel TBB, OpenMP. Do they work on AMD and does AMD have

R system() process always uses same CPU, not multi-threaded/multi-core

和自甴很熟 提交于 2019-12-19 05:57:10
问题 In R 3.0.2 on Linux 3.12.0, I am using the system() function to execute a number of tasks. The desired effect is for each of these tasks to run as they would if I had executed them on the command-line via Rscript outside of R system() . However, when executing them inside R via system() , each task is tied to the same single CPU from the master R process. In other words: When launched via RScript directly from a bash shell, outside of R, each task runs on its own core as possible (this is

Multi threading which would be the best to use? (Threadpool or threads)

混江龙づ霸主 提交于 2019-12-19 04:16:08
问题 Hopefully this is a better question than my previous. I have a .exe which I will be passing different parameters (file paths) to which it will then take in and parse. So I will have a loop going, looping through the file paths in a list and passing them to this .exe file. For this to be more efficient, I want to spread the execution across multiple cores which I think you do through threading. My question is, should I use the threadpool, or multiple threads to run this .exe asynchronously?

.NET movement of threads between cores

梦想与她 提交于 2019-12-19 00:54:09
问题 Follow up question from Multi-core usage, threads, thread-pools. Are threads moved from one core to another during their lifetime? Of course. Imagine you have three threads running on a dualcore system. Show me a fair schedule that doesn't involve regularly moving threads between cores. This is my first time on this site, so I didn't have enough rep to comment I guess. I decided to just make a new question referencing the one I wanted to comment on. What is the process of selecting a core to