Re: Does NetBSD understand the __thread variable declaration ?
From: Joel Reicher (joel_at_panacea.null.org)
Date: 11/19/05
- Previous message: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- In reply to: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Next in thread: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Reply: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Nov 2005 20:53:57 GMT
"llothar" <llothar@web.de> writes:
> It is portable among all OS that support at least the mimium for
> multithreaded programming.
>
> It is "__thread", yes thats right and it is a gcc/glib feature.
How can you say these two things together? If you use "__thread",
which is a feature of a particular compiler, your code will not be
portable.
> But i
> think more a os runtime then a compiler feature. Also solaris has this
> and windows has exact the same as "declspec(thread)".
What thread *semantics* are supported in the kernel is an OS
issue. How this is accessed in the syntax of a language, if at all, is
a compiler issue.
> I also don't think that BSD's support this as they were in the past
> terrible bad in multithreading. I just hoped that today where i can buy
> a dual core in each discounter like Wal-Mart or the german Aldi, some
> people realized that multithreading is a "must have" feature now.
NetBSD supports all that you want just fine. The kernel has these
semantics. You just have to use pthread_get/setspecific() instead of a
cute little keyword to access it.
Cheers,
- Joel
- Previous message: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- In reply to: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Next in thread: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Reply: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|