Jan 4, 2024
Consider simulating non-CPU blocking operations on the backend, such as incorporating a `Thread.sleep(5000)`. Virtual threads can effectively prevent threads from waiting for external resources (database calls, api calls, signals, files, etc). Your example is not relevant to assess the performance of Virtual Threads.