multicore Questions
4
There are several threading models that are used for scheduling threads within applications:
1:1 (kernel level threading): Each thread created by a user is mapped to a scheduled thread in the ker...
Vincenza asked 1/12, 2019 at 23:16
3
Solved
In Node.js there is the cluster module to utilize all available cores on the machine which is pretty great, especially when used with the node module pm2. But I am pretty stoked about some features...
Anglonorman asked 4/4, 2022 at 11:20
5
Does such a implementation of Forth exists that allows you to take full advantage of multicore processors?
3
Solved
What are the key practical differences between GPGPU and regular multicore/multithreaded CPU programming, from the programmer's perspective? Specifically:
What types of problems are better suited...
Ploce asked 7/5, 2011 at 4:45
5
Solved
I have to make a recommendation to management regarding whether or not we should spend the extra money to purchase new computers with Intel i7 CPUs (i7 950s) or whether we should buy Intel Core 2 Q...
Reliant asked 1/10, 2009 at 18:30
6
Solved
As a result of my answer to this question, I started reading about the keyword volatile and what the consensus is regarding it. I see there is a lot of information about it, some old which seems wr...
Magnetochemistry asked 9/8, 2011 at 11:17
9
Solved
Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile large projects quicker (for example 4 source files at a time for a multi-core CPU)?
...
Antifouling asked 5/1, 2009 at 22:21
1
I have a system running Linux kernel 4.19.71 with Intel Xeon Platinum 8160 CPU, it features 24 physical cores and with 2 threads per core it makes 48 logical cores. I'm experimenting with virtualiz...
Container asked 15/3, 2021 at 22:43
1
Solved
What is the correct method for using multiple CPU cores with jax.pmap?
The following example creates an environment variable for SPMD on CPU core backends, tests that JAX recognises the devices, an...
5
From the documentation for GNU make: http://www.gnu.org/software/make/manual/make.html#Parallel
When the system is heavily loaded, you will probably want to run fewer
jobs than when it is light...
1
Solved
I am running this code using the healpy package. I am not using multiprocessing and I need it to run on a single core. It worked for a certain amount of time, but, when I run it now, the function h...
Esmond asked 7/12, 2022 at 12:51
1
Solved
Pre ARMv6 MPUs/MCUs have SWP instruction (e.g. good ole and still alive ARM7TDMI). In ARMv6 architecture LDREX/STREX pair has been introduced and SWP removed. However with one exception – ARMv6-M (...
4
Solved
Could anyone explain to me the differences between multi-CPU, multi-core, and hyper-thread? I am always confused about these differences, and about the pros/cons of each architecture in different s...
Assiniboine asked 25/3, 2009 at 8:32
2
Solved
Recently, I discussed why there is a volatile mark at seq in Java Actors demo
@volatile private var seq = 0L
private def nextSeq: Long = {
val next = seq
seq += 1
next
}
One answer was that t...
Syreetasyria asked 11/6, 2015 at 7:38
11
Solved
Once upon a time, to write x86 assembler, for example, you would have instructions stating "load the EDX register with the value 5", "increment the EDX" register, etc.
With modern CPUs that have 4...
6
Solved
It is known the way to disable logical CPUs in Linux, basically with echo 0 > /sys/devices/system/cpu/cpu<number>/online. This way, you are only telling to the OS to ignore that given (<...
7
Solved
What is the best way to determine the number of threads to fire off in a machine with n cores? (C++)
I have a vector<int> with 10,000,000 (10 million) elements, and that my workstation has four cores. There is a function, called ThrFunc, that operates on an integer. Assume that the runtime f...
Munda asked 17/1, 2012 at 2:4
2
Solved
Is it possible to set CPU affinity in native C code compiled with the Android NDK? Since the system is using a Linux kernel, it should be possible to use the sched_setaffinity/sched_getaffinity fun...
Fusible asked 19/9, 2011 at 7:51
2
Solved
I wrote code using Java 8 streams and parallel streams for the same functionality with a custom collector to perform an aggregation function.
When I see CPU usage using htop, it shows all CPU cores...
Aporia asked 2/8, 2015 at 6:29
1
Solved
I'm confused whether rdtscp monotonically increments in a multi-core environment. According to the document: __rdtscp, rdtscp seems a processor-based instruction and can prevent reordering of instr...
1
When I googled, there were some answers saying that in kubernetes, 100ms cpu means that you are going to use 1/10 time of one cpu core, and 2300ms cpu means that you are going to use 2 cores fully ...
Pronucleus asked 19/10, 2020 at 2:59
6
Solved
Is there a tool available to execute several process in parallel in a Windows batch file? I have found some interesting tools for Linux (parallel and PPSS), however, I would need a tool for Windows...
Mayflower asked 23/3, 2009 at 9:42
8
Solved
4
Solved
I'm working on a multithreaded application, and I want to debug it using GDB.
Problem is, one of my threads keeps dying with the message:
pure virtual method called
terminate called without an ac...
Agma asked 12/7, 2009 at 6:41
1
I need to add some hardware to a multicoe x86-64 processor and test it using simulation, so I was thinking of using QEMU. But I want to know the general idea of modeling a CPU in qemu. Any good doc...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.