Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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
Domain Nodelet?
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 romping around the Monastery: (3)
As of 2022-08-10 04:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found