Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by perlfan (Vicar)
on Jul 27, 2020 at 17:56 UTC ( [id://11119865]=note: print w/replies, xml ) Need Help??


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

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^3: API rate limit using Cache::Mmap need help

Replies are listed 'Best First'.
Re^4: API rate limit using Cache::Mmap need help
by jcb (Parson) on Jul 28, 2020 at 01:32 UTC

    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://11119865]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found