Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: API rate limit using Cache::Mmap need help

by jcb (Parson)
on Jul 28, 2020 at 01:32 UTC ( [id://11119872]=note: print w/replies, xml ) Need Help??


in reply to Re^3: API rate limit using Cache::Mmap need help
in thread API rate limit using Cache::Mmap need help

Interpreter threads seem to be closer to a lightweight process model (like Erlang), with limited shared memory IPC (unlike Erlang). They avoid most of the hazards of the underlying C threading model, at the cost of strongly isolating the threads. If I understand correctly, interpreter threads were originally introduced to support emulating fork on Windows, where there is no fork system call and starting a process is ridiculously expensive.

Threads in general have been a big marketing lie. The gains from multi-processing are often lost (and then some) in locking and mutual-exclusion overhead. I seem to remember reading of multiple attempts to rewrite the X Window System graphics server to use threads; they all failed when the multi-threaded versions turned out to be significantly slower than the original select-based code, even on multiprocessor hardware.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-25 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found