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

如何确保配置了多线程的taskTracker执行的有序性 #481

Open
smallze opened this issue Nov 30, 2023 · 2 comments
Open

如何确保配置了多线程的taskTracker执行的有序性 #481

smallze opened this issue Nov 30, 2023 · 2 comments

Comments

@smallze
Copy link

smallze commented Nov 30, 2023

虽然知道不维护了,但项目中仍在使用,这就是开源的力量吧。目前有个需求,在不改变多线程的tasktracker的情况下,怎么确保taskList批量提交时,执行的有序性,也不能直接修改已有的多线程taskTracker。

我目前的做法是新建了一个jobclient和tasktracker(设置单线程),但这也做对系统开销是否太大了呢

@Laity
Copy link

Laity commented Jan 2, 2024

开销肯定很大,除了重写tasktracker里RunnerPool的线程池,没嘛太好的办法。

@Laity
Copy link

Laity commented Jan 2, 2024

在RunnerPool里用PriorityBlockingQueue代替SynchronousQueue

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

No branches or pull requests

2 participants