ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Anton V. Boyarshinov" <boyarsh@ru.echo.fr>
To: devel@altlinux.ru
Subject: Re: [devel] Re: perl-5.8.0-alt0.3 (important)
Date: Tue, 22 Oct 2002 10:25:07 +0400
Message-ID: <20021022062611.6AFC22B515@mail.ru.echo.fr> (raw)
In-Reply-To: <20021021225228.GE14359@mhz.mikhail.zabaluev.name>

Добрый день

On Tue, 22 Oct 2002 02:52:28 +0400
Mikhail Zabaluev <mhz@altlinux.org> wrote:

> Hello Anton,
> 
> On Mon, Oct 21, 2002 at 10:00:00AM +0400, Anton V. Boyarshinov
> wrote:
> >
> > > Угу. Всё-таки неприспособленные к threads библиотеки -- это
> > > анахронизм, который надо изживать.
> > 
> > Идеализм тоже надо изживать. Кому анахронизм, а кому без них
> > -- никак.
> 
> Здесь нужны примеры.

http://www.perl.com/pub/a/2002/09/04/threads.html?page=4

Modules

In general, unless a module has been specifically vetted as
thread safe it cannot be used in a threaded program. Most pure
Perl modules should be thread safe but most XS modules are not.
This goes for core modules too!

An earlier version of the elevator simulator used Time::HiRes to
allow for fractional sleep() times. This really helped speed up
the simulation since it meant that elevators could traverse more
than one floor per second. However, on further investigation (and
advice from Nick Ing-Simmons) I realized that Time::HiRes is not
necessarily thread safe. Although it seemed to work fine on my
machine there's no reason to believe that would be the case
elsewhere, or even that it wouldn't blow up at some random point
in the future. The problem with thread safety is that it's
virtually impossible to test for; either you can prove you have
it or you must assume you don't!

Из этого следует что большинство модулей с С кодом не
thread-safe.
Антон
-- 
mailto:boyarsh@mail.ru
mailto:boyarsh@ru.echo.fr
 10:20am  up 6 days, 23:18,  3 users,  load average: 0.21, 0.24,
0.25


  reply	other threads:[~2002-10-22  6:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16  1:45 [devel] " at
2002-10-16  4:44 ` at
2002-10-16  8:54   ` Dmitry V. Levin
2002-10-16 14:47     ` at
2002-10-16 15:31       ` Dmitry V. Levin
2002-10-16  8:39 ` Alexander Bokovoy
2002-10-16  9:09   ` Stanislav Ievlev
2002-10-16  8:50 ` Dmitry V. Levin
2002-10-16  8:56   ` Anton V. Boyarshinov
2002-10-16 14:19     ` at
2002-10-17  8:14 ` [devel] " Mikhail Zabaluev
2002-10-18  1:40   ` at
2002-10-18 22:26     ` Mikhail Zabaluev
2002-10-18 23:42       ` at
2002-10-19  9:38         ` Mikhail Zabaluev
2002-10-19 20:45           ` [devel] Re: perl ABI detection at find-requires stage at
2002-10-20  0:06             ` at
2002-10-21 23:05               ` Mikhail Zabaluev
2002-10-21  6:00           ` [devel] Re: perl-5.8.0-alt0.3 (important) Anton V. Boyarshinov
2002-10-21 19:26             ` Alexey I. Froloff
2002-10-22  8:20               ` Dmitry V. Levin
2002-10-21 20:16             ` [devel] Re: perl inc_version_list at
2002-10-21 22:52             ` [devel] Re: perl-5.8.0-alt0.3 (important) Mikhail Zabaluev
2002-10-22  6:25               ` Anton V. Boyarshinov [this message]
2002-10-22 13:08                 ` Alexey Tourbin
2002-10-26  0:32                   ` [devel] Re: perl thread safety at
2002-10-20  1:37       ` [devel] Re: perl/Junior at
2002-10-20 13:37       ` [devel] Re: perl-5.8.0-alt0.3 (important) Michael Shigorin
2002-10-21  2:12         ` at
2002-10-21 22:50           ` Mikhail Zabaluev
2002-10-21  3:01       ` at

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021022062611.6AFC22B515@mail.ru.echo.fr \
    --to=boyarsh@ru.echo.fr \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git