Search Results

Search: Posts Made By: gorga
Forum: High Performance Computing 06-21-2010
18,312
Posted By gorga
Bear in mind though that the "best" case is also...
Bear in mind though that the "best" case is also the typical one here.

Not a problem here, the idle workers are searching through separate queues.

Fair enough, in rare cases, it could behave...
Forum: High Performance Computing 06-20-2010
18,312
Posted By gorga
At start-up I used the pthread_setaffinity_np...
At start-up I used the pthread_setaffinity_np function. Each pthread exists on its core for the life-time of the application, i.e:


ret_code = pthread_setaffinity_np(thread->tid,...
Forum: High Performance Computing 06-20-2010
18,312
Posted By gorga
That's an impressive reply Corona, you made your...
That's an impressive reply Corona, you made your case very persuasively, but it's not "my case". The problem is you're not aware of the overall system, its context, aims and design (which is not your...
Forum: High Performance Computing 06-18-2010
18,312
Posted By gorga
But with those atomic operations I can avoid...
But with those atomic operations I can avoid sending threads to sleep and having to wake them up.

I would agree if no other progress is being made, but to reiterate, the thread-pool I'm building...
Forum: High Performance Computing 06-18-2010
18,312
Posted By gorga
I was referring to the older GNU Portable...
I was referring to the older GNU Portable Threads...

GNU Pth - The GNU Portable Threads (http://www.gnu.org/software/pth/pth-manual.html)

"Pth doesn't require any kernel support, but can NOT...
Forum: High Performance Computing 06-17-2010
18,312
Posted By gorga
Looks like you're right judging by those results....
Looks like you're right judging by those results. But if I ran it on 4/8/16/32 etc cores, would it still be the case? I have 4-core at work, I'll try it tomoro. Although if LOCK just causes a...
Forum: High Performance Computing 06-17-2010
18,312
Posted By gorga
I've accounted for that possibility in the...
I've accounted for that possibility in the elaborate design of the "task-queues", (trust me on this).

The "thread-pool" is a customised in design, dedicated for the application sitting atop of...
Forum: High Performance Computing 06-17-2010
18,312
Posted By gorga
Noting your help on the Programming forum too! ...
Noting your help on the Programming forum too!

Are you suggesting then, that if I used such an instruction relatively frequently (say once in a loop of maybe a 100 execution statements, per...
Forum: High Performance Computing 06-16-2010
18,312
Posted By gorga
Hi Corona, (small world :)) I hadn't...
Hi Corona, (small world :))



I hadn't heard of futexes until you mentioned them, but I did some reading and it seems they still use atomic instructions to update shared variables. In that case...
Forum: High Performance Computing 06-16-2010
18,312
Posted By gorga
Memory Barriers for (Ubuntu) Linux (i686)
Hi all,

(Hope this is the right forum for this question)

I have some multi-threaded C code (compiled with GCC 4.4.3) which accesses shared variables. Although I've marked those variables with...
Forum: Programming 06-08-2010
6,800
Posted By gorga
Thanks for the heads-up Corona688, You might...
Thanks for the heads-up Corona688,

You might be right, but the thing is I had to store the "pthread_t" values in an array anyway, so in my application, after calling pthread_self() I would then...
Forum: Programming 06-08-2010
6,800
Posted By gorga
No. That wouldn't work unfortunately. I'd have to...
No. That wouldn't work unfortunately. I'd have to save it in something that I would then need to tag along to every function as a parameter. I don't want to do that because I'm building 2...
Forum: Programming 06-07-2010
5,357
Posted By gorga
I have allocated the memory. I've ran and tested...
I have allocated the memory. I've ran and tested the program and it works without seg-faulting. I'm "pretty" certain that I understand what's going on now with the pointers, although of course I...
Forum: Programming 06-07-2010
6,800
Posted By gorga
"I can't think of a good reason to call...
"I can't think of a good reason to call pthread_self a lot.
why?"

It's a long story, but basically I need a way of accessing application specific "context" information I have stored which is...
Forum: Programming 06-07-2010
5,357
Posted By gorga
Thanx for your reply, "you're trying to...
Thanx for your reply,

"you're trying to initialize a struct, from a pointer."

I thought with the typedef...


typedef section_t* region_t[SECTION_LENGTH];
This would mean that the following...
Forum: Programming 06-07-2010
5,357
Posted By gorga
C pointer/array duality confusion
Hi all,

Can anyone provide help with getting the right syntax regarding array/pointers in C in the following code? Can't locate a specific example which clarifies this...

Say I declare a...
Forum: Programming 06-03-2010
6,800
Posted By gorga
Thanks for your replay Corona688. I found...
Thanks for your replay Corona688.

I found similar code in glibc (tls.h)...


/* Return the TCB address of the current thread. */
# define THREAD_SELF \
...
Forum: Programming 06-03-2010
6,800
Posted By gorga
calling pthread_self (on ubuntu), expensive?
Hi all,

Is anyone aware of what operations are involved when a call to pthread_self() is made, obtaining the unique thread ID on a Ubuntu system (or even any Linux flavour)?

Specifically, to...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 03:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy