LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
BackTrack 3.0 / 4.0
Pre-Final

5,182
Ubuntu 9.10
4,127
VLC 1.0.3
3,071
Wine 1.0.1 / 1.1.32
2,587
Yahoo Messenger
1.0.4

2,260
Thunderbird PST
Import plugin 1.2

2,152
Adobe Flash Player
for Linux 10.0.32.18

2,104
Mandriva Linux
2010.0

1,859
Super Grub Disk
0.9799

1,463
Yellow Dog Linux 6.2
1,299

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.3
  • Wine 1.0.1 / 1.1.32
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3....
  • Fedora 11
  • OpenOffice.org 3.1.1
  • Firestarter 1.0.3
  • The Gimp 2.6.7 / 2...
  • FileZilla 3.2.8.1 ...
  • Transmission 1.76
  • Super Grub Disk 0....
  • Gufw 9.04.2
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11....
  • Opera 10.01 / 10.1...
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Programming / Perl Modules

    Thread::Semaphore 2.09

    Download button

    No screenshots available
    Downloads: 114  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jerry D. Hedden | More programs
    Perl Artistic License / FREE
    July 11th, 2009, 04:34 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    Thread::Semaphore description

     

    Thread-safe semaphores

    Semaphores provide a mechanism to regulate access to resources. Unlike locks, semaphores aren't tied to particular scalars, and so may be used to control access to anything you care to use them for.

    Semaphores don't limit their values to zero and one, so they can be used to control access to some resource that there may be more than one of (e.g., filehandles). Increment and decrement amounts aren't fixed at one either, so threads can reserve or return multiple resources at once.

    SYNOPSIS

     use Thread::Semaphore;
     my $s = Thread::Semaphore->new();
     $s->down(); # Also known as the semaphore P operation.
     # The guarded section is here
     $s->up(); # Also known as the semaphore V operation.

     # The default semaphore value is 1
     my $s = Thread::Semaphore-new($initial_value);
     $s->down($down_value);
     $s->up($up_value);

    Requirements:

    · Perl

      


    TAGS:

    thread-safe semaphores | regulate access | Perl module | Perl | thread-safe | semaphores



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM