Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Critical sections; In the Perl interpreter (no)

by tye (Sage)
on Feb 21, 2017 at 00:56 UTC ( #1182383=note: print w/replies, xml ) Need Help??

in reply to Critical sections; In the Perl interpreter

But they were all sharing the same .so libraries, and the number of critical sections(CS) that the interpreter had to go through would create single file bottle-neck after bottle-neck.

No. Critical sections are only needed to protect shared and modifiable resources. Shared libraries are indeed shared, but they are not modifiable. If the code in a shared library implements a critical section around some block of code, then each process that passes through that code is going to have their own semaphore and they will not block each other at all.

- tye        

  • Comment on Re: Critical sections; In the Perl interpreter (no)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1182383]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-09-28 00:11 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (143 votes). Check out past polls.