[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

About win32 native thread

Wang Dong

1/16/2007 8:02:00 AM

Is there any reliable win32 thread lib?


3 Answers

Dave Burt

1/17/2007 8:27:00 AM

0

Wang Dong wrote:
> Is there any reliable win32 thread lib?

I have not used it, but win32-thread exists as part of the Win32 Utils
project:

http://rubyforge.org/projects/w...

Cheers,
Dave

Daniel Berger

1/17/2007 2:16:00 PM

0

Dave Burt wrote:
> Wang Dong wrote:
>> Is there any reliable win32 thread lib?
>
> I have not used it, but win32-thread exists as part of the Win32 Utils
> project:
>
> http://rubyforge.org/projects/w...

That's purely alpha, and it will crash if you try to create more than
one native thread.

There is no reliable thread lib, for Windows or any other platform,
because Ruby isn't thread safe at this point.

Regards,

Dan

Wang Dong

1/18/2007 2:19:00 AM

0

"Daniel Berger" <djberg96@gmail.com> ??????:45AE3034.2020409@gmail.com...
> Dave Burt wrote:
>> Wang Dong wrote:
>>> Is there any reliable win32 thread lib?
>>
>> I have not used it, but win32-thread exists as part of the Win32 Utils
>> project:
>>
>> http://rubyforge.org/projects/w...
>
> That's purely alpha, and it will crash if you try to create more than one
> native thread.
>
> There is no reliable thread lib, for Windows or any other platform,
> because Ruby isn't thread safe at this point.
>
> Regards,
>
> Dan
>

Thanks.
win32-thread really always crash.
Python builds threads on pthreads libaray for portable, it's a good ideal.