|
|
|
|
|
by chrisseaton
2229 days ago
|
|
> A safepoint is when all threads in the JVM have blocked And having blocked them, you can then pre-empt them. > You can't preempt crunching those numbers if it's not within the BEAM. I still don't see why sorry. If you had a JIT and you compiled maths intensive code to native code, it could run efficiently in BEAM and still be pre-emptible by having a safepoint in the generated code. How do you think Java is doing optimised numerical code that is pre-emptible from user-space? Safepoints! BEAM could do the same thing. |
|