Java – multithreading – multiple users

When a single user accesses an application, multiple threads can be used. If there are multiple cores, they can run in parallel If only one processor exists, threads will run one by one

How do threads handle when multiple users access the application?

Solution

I can talk about it from the perspective of Java, so your question is "how do threads handle when multiple users are accessing the application?

Now, if you want to know how to schedule threads in the CPU kernel, it depends on the operating system One thing is, "threads are the basic unit allocated to the CPU." Start with the green thread here and you'll understand it better

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>