Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java面试题汇总(三) | Leo Yang's Blog #14

Open
leo-yang0201 opened this issue Mar 8, 2020 · 0 comments
Open

Java面试题汇总(三) | Leo Yang's Blog #14

leo-yang0201 opened this issue Mar 8, 2020 · 0 comments

Comments

@leo-yang0201
Copy link
Owner

https://leo-yang0201.github.io/leo-yang0201.github.io/2020/03/07/Java%E9%9D%A2%E8%AF%95%E9%A2%98%E6%A8%A1%E5%9D%97%E4%B8%89/

并行和并发有什么区别? 并行指两个或者多个事件在同一时刻发生,并发是指两个或多个事件在同一时间间隔发生 并行是在不同实体上的多个事件,并发是在同一实体上的多个事件 并发编程的目标是充分的利用处理器的每一个核,以达到最高的处理性能 线程和进程的区别?进程是程序运行和资源分配的基本单位,一个程序至少有一个进程,一个进程至少有一个线程。进程在执行过程中拥有独立的内存单元,而多个线程共享内存单元,减少切

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant