multiprocessor Questions
7
can we use interchangeably "Parallel coding" and "Multithreading coding " on single cpu?
i am not much experience in both,
but i want to shift my coding style to any one of the above.
As i found...
Turmeric asked 2/7, 2009 at 8:6
4
I want to build 4 separate apks for 4 different Android CPU processor architectures (armeabi armeabi-v7a x86 mips) using Gradle.
I have native OpenCV libraries built for 4 CPU architectures in th...
Lebkuchen asked 9/10, 2013 at 9:51
5
Solved
I have a Python program for Linux almost looks like this one :
import os
import time
process = os.popen("top").readlines()
time.sleep(1)
os.popen("killall top")
print process
the program han...
Ichthyosaur asked 11/12, 2010 at 17:27
2
Solved
I'm trying to understand the logic behind how this class was written, and when I should and shouldn't use it. Any insight would be appreciated
internal struct SpinLock
{
private volatile int lock...
Semen asked 9/5, 2012 at 2:33
2
I found a good question for measuring function performance, and the answers recommend to use Stopwatch as follows
Stopwatch sw = new Stopwatch();
sw.Start();
//DoWork
sw.Stop();
//take sw.Elapsed
...
Purple asked 19/7, 2009 at 8:40
5
Solved
Ok, so I am reading about synchronization, and I read through various algorithms such as spinlocks, semaphores, and mutex to avoid race condition.
However, these algorithms can't prevent race cond...
Goidelic asked 23/10, 2011 at 0:54
2
Solved
For a uni-processor, the lock algorithm is pretty simple.
Lock(threadID) {
Disable Interrupts
If lock is already owned by same thread{
Restore Interrupts
return
}
if lock is free {
make loc...
Discomfort asked 22/4, 2011 at 21:58
4
Solved
I've been doing some tests about the way a .NET C# application uses resources, like CPU or memory. I wrote some loops that calculate values for a large amount of numbers and I'm satisfied with the ...
Gorilla asked 11/1, 2011 at 12:5
3
Solved
Hi I have a simple script that takes a file and runs another Perl script on it. The script does this to every picture file in the current folder. This is running on a machine with 2 quad core Xeon ...
Nathan asked 13/12, 2010 at 14:1
3
Solved
I am using the Haptek People Putty player for my C# application and I've seen people say in the forums that it doesn't work well with a multicore processor. My application runs well on my Core 2 Du...
Machellemachete asked 7/8, 2010 at 9:59
6
Why is it that I can find lots of information on "work stealing" and nothing on "work shrugging" as a dynamic load-balancing strategy?
By "work-shrugging" I mean pushing surplus work away from bus...
Rozamond asked 31/3, 2010 at 12:25
4
Solved
I'm coming largely from a c++ background, but I think this question applies to threading in any language. Here's the scenario:
We have two threads (ThreadA and ThreadB), and a value x in shared m...
Jackscrew asked 9/7, 2009 at 17:52
1
© 2022 - 2024 — McMap. All rights reserved.