3 ms·
Tangent: Question 42 seems bad to me. It asks to analyze the behavior of two processes concurrently calling a method on the same typescript class instance. Eit
by iudqnolq 3y ago
Tangent: Question 42 seems bad to me. It asks to analyze the behavior of two processes concurrently calling a method on the same typescript class instance.
Either in the browser or in node JavaScript does not have processes operating on shared memory. While I get what they're trying to say I think it's counterproductive to learning to call a task on the JavaScript event loop a process. Answering the question requires knowing that the runtime will only preempt at await statements, and calling it a process confuses that.