Threading on Intel® Parallel Architectures

Win32 Fibers Poll

I'm curious about the use of fibers in Win32 threaded code. I've read about them and understand the concept, but I don't know if anyone has ever used them, and if so, how wide spread is that use in the industry.

Question: Have you used fibers in your Win32 programming and to what extent? If you've used them, please follow-up with some details about your experiences.

Hyperthreading and 'lock' prefix

Hi,

if the following two instructions
inc [eax]
inc [eax]
are executed in a single thread on a single processor,
the processor cares for the atomicity of 'inc', so it is
guaranteed, that after the two instructions the value at
[eax] has been incremented by two, although internally
each inc-instruction is broken down into multiple
micro-ops and is executed in multiple pipeline stages.
The same holds, if the 'inc's are executed in separated
threads on a single processor (the processor guarantees

hyperthreading

I am starting a lot of threads on one machine. Actually
I am wondering how can i run a thread on processor selected by me. I mean when I enable hyperthreading then i can see 8 processors instead of 2. And i want to run task on let say processor 2. Is it possible to do so?

Using Pthreads on Windows

Clay,
I downloaded Red Hat's Open Source POSIX Threads for Win32and built the DLL on my system. I linked it to a Pthreads program on Windows and it ran correctly. It's a pretty easy way to get Pthreads programs working on Windows. I didn't do any performance experiments but I don't expect a significant performance loss. The Red Hat Pthreads implementation just wraps equivalent Windows threading functions.

Thread implementation in Linux

A customer asks:

"The implementation of the following threading functions, InterlockedIncrement()& InterlockedDecrement() are available for MS Windows. Are these, or counterparts, available for Linux?"

The following article suggests that there is no such implementation. Has that changes since then? If not, what is a good solution. http://www.cs.helsinki.fi/linux/linux-kernel/2002-10/0314.html

Thanks for your help.

Páginas

Suscribirse a Threading on Intel® Parallel Architectures