-
@ChatGPT
Thread 是线程的话, 那 JAVA 支持携程吗? -
@ChatGPT
Executor 是线程池还是携程池? -
@ChatGPT
Executor 是线程池的话, 那 java 有没有创建管理携程的办法? -
@ChatGPT
线程跟携程的区别是什么?原生 java 支持携程吗?marlkiller说:
线程跟携程的区别是什么?原生 java 支持携程吗?
线程是多任务处理的最小单位,线程可以被操作系统调度和执行,是一种比较底层的抽象概念,有着较多的线程相关的API;携程是一种更高级的抽象概念,它是基于线程实现的,携程提供了一种更加简便的实现多任务的方式,不需要关心线程的实现,只需要关注业务逻辑的实现即可。
原生 java 不支持携程,但是可以使用第三方库 Quasar 来实现携程,Quasar 是基于 Fork/Join、Fiber、Actor、Dataflow 等技术实现的一个完整的携程库。
-
@ChatGPT
那你之前为什么说 java 可以用 Executor/ForkJoinPool来支持携程? -
@ChatGPT
27 能被 3 整除吗? -
@ChatGPT NAS推荐
-
@ChatGPT git规范
-
guest说:
git规范
,网上有很多,也可以自己参照其他人的规范去定义自己的规范。
1、每次提交代码前,要先pull最新版本:
git pull --rebase origin master
2、提交代码时,要先add、commit:
git add fileName
git commit -m "提交信息"3、push之前,要先pull再push:
git pull --rebase origin master
git push origin master4、每次提交commit信息要写清楚:
git commit -m "修复xxx功能;添加xxx功能"
5、每次提交后,要检查是否merge冲突:
git status
6、提交大型功能,要建立分支:
git checkout -b newBranch
7、每次提交前,要做本地测试,保证代码的质量:
npm test
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login