Questions tagged [multi-core]
The multi-core tag has no summary.
24 questions
0
votes
1
answer
2k
views
Feature of CPU needed to run Javascript fast
This is more of a Computer Engineering question, but what is the feature of a CPU to run Javascript fast? I use to access the internet with an AMD Phenom II with 6 cores and I could almost have as ...
71
votes
3
answers
67k
views
How does a single thread run on multiple cores?
I am trying to understand, at a high-level, how single threads run across multiple cores. Below is my best understanding. I do not believe it is correct though.
Based on my reading of Hyper-threading,...
0
votes
1
answer
159
views
Celluloid actors parallel work slow?
I'm new to actors and just playing around in ruby using Celluloid. I have this code below
module Enumerable
# Simple parallel map using Celluloid::Futures
def pmap(&block)
futures = map { ...
-6
votes
2
answers
2k
views
How does the web application support 150 max threads when the cpu only supports 2? [duplicate]
doing an lscpu cmd this is what i get
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: ...
6
votes
3
answers
540
views
Why running threaded algorithms with exact number of cores the machine has, is faster than anything else?
I made some basic multi-threading tests here, and noticed that the speed increase when using the exact is bigger than I expected.
I assumed that speed would increase linearly until I hit the limit of ...
2
votes
1
answer
2k
views
Multi-threading on a single core
Hypothetically, if you (I / someone) were to create a multi-threaded application, utilising the processing powers of multiple cores (for example, using TPL in C#). Would that program crash, if it were ...
-2
votes
2
answers
415
views
Possible methods of accessing L1 cache and specifying threads/cores
A faster prime number generator with hyperthreading and L1 cache
About five years ago I wrote a simple VB widget to generate the first one million prime numbers and then port them to into its single ...
-2
votes
3
answers
1k
views
Is it possible and faster to run an application on an unused CPU core?
Is it possible to move an application (or task) to another core to make it run faster and get all of that cores processing power?
The way I understand it is that in an operating system applications ...
3
votes
1
answer
981
views
Why does Node not support several event loops in one Process?
As the title says, why does Node not support several event loops in one Process? The idea, is that node spawns a user decided number of threads, which each have an event loop. When a new callback is ...
6
votes
1
answer
2k
views
How to write a doubly linked list for multi-core use without global lock?
I'm trying to write a cyclic doubly linked list where the nodes or even the link pointers are locked individualy. Or a lock-free or even wait-free (I think that's not possible) implementation.
The ...
5
votes
3
answers
4k
views
How many threads should I use in my NIO server?
I've built a Java NIO TCP server, it currently uses four threads.
One ServerRunnable thread that uses a selector and three worker threads.
I've been looking around for some information about this, ...
55
votes
12
answers
11k
views
Why would a program require a specific minimum number of CPU cores?
Is it possible to write code (or complete software, rather than a piece of code) that won't work properly when run on a CPU that has less than N number of cores? Without checking it explicitly and ...
2
votes
1
answer
228
views
Does OpenMp have support for Real Time Multiprocessor Computing?
I am working on a real time multiprocessor scheduling algorithm. I found very few results via google research related to it. A few simulators are available but are not robust enough.
OpenMp is an ...
2
votes
1
answer
2k
views
Can we illustrate a CPU pipeline with a UML sequence diagram?
I study multicore pipelining and the diagrams are not UML sequence diagrams for instance
Why not remake this diagram like an UML sequence diagram, would not that be more clear so that we can see both ...
9
votes
2
answers
3k
views
Would Task-based programming in C++ require new language standard features?
So I saw this video on Youtube with all these C++ masters on GoingNative 2012 : Interactive panel where everybody could ask the questions.
This is the video I was talking about: GoingNative 2012 - ...