P.S. On a two-core single-CPU system, the overhead of XCHG vs LOCK XCHG with five seperate processes:
The code is a million loops of this:
except once with LOCK XCHG, one with just XCHG. No significant difference.
---------- Post updated at 03:25 PM ---------- Previous update was at 03:14 PM ----------
Quote:
Originally Posted by gorga
I originally used it with existing thread-pools, but found I needed more control over the allocation of "tasks" to "cores"
How so?
Quote:
hence I'm making my own.
I don't see how using a different structure excludes pthreads. You wanted to avoid pthreads since it used atomic ops, and are prepared to use atomic ops instead? It's best to write portably if possible anyway.
Last edited by Corona688; 06-17-2010 at 06:42 PM..
I have 512 mem on this laptop, though 'top' tells me I only have 380. However, Ubuntu is using 288 mb of memory, when I only have 3 terminals, running lynx, vim(for this file) and (of course) top. Considering it I have lynx running a 600 page txt file, which of course would eat some memory but 300?... (0 Replies)
Hi, i am quite new to linux. I am interested in fedora linux distro. Fedora Project
I dont know which one to choose, either i686, x86 64 or ppc. I prefer a live cd, coz its easy to use.
And what is the difference between "Fedora Desktop Live Media" and "Fedora KDE Live Media". (3 Replies)
Hi guys , i need to get the total virtual memory in ubuntu but i need to write a C++ code for that, any idea on how to go about doing it? any references? or website that i can refer to ? (6 Replies)
My PC (Esprimo, 3 yeas old) has one hard drive having 2 partitions C: (80 GB NTFS, XP) and D: (120 GB NTFS, empty) and and a 200 MB area that yet is not-partitioned.
I would like to try Ubuntu and to install Ubuntu on the not-partitioned area . The idea is to have the possibility to run... (7 Replies)