Skip to content

[BOT] Add 20 new questions#69

Merged
peanut996 merged 1 commit intomasterfrom
feature/add-questions/2025-03-20-13-11-45
Mar 20, 2025
Merged

[BOT] Add 20 new questions#69
peanut996 merged 1 commit intomasterfrom
feature/add-questions/2025-03-20-13-11-45

Conversation

@peanut996
Copy link
Copy Markdown
Owner

This PR adds 20 new interview questions to the question bank.

Questions Added:

  1. 如何设计一个线程池,满足特定的性能指标(例如:吞吐量、延迟) (Coding, Medium)
  2. 如何实现一个自定义的拒绝策略? (Coding, Medium)
  3. 如何实现一个自定义的 ThreadFactory?为什么要自定义 ThreadFactory? (Coding, Medium)
  4. 如何在线程池中实现任务的优先级调度? (Coding, Hard)
  5. 如何保证提交到线程池的任务的执行顺序? (Coding, Medium)
  6. 如何设计一个可伸缩的线程池? (Coding, Hard)
  7. 如果线程池中的线程因为异常而终止,如何自动重启线程? (Coding, Medium)
  8. 如何实现一个线程池的优雅降级方案? (Coding, Medium)
  9. 如何避免死锁? (Question, Medium)
  10. 在什么情况下适合使用 CachedThreadPool?它的缺点是什么? (Question, Medium)
  11. 如何排查线程池中的线程死锁问题? (Question, Hard)
  12. 如何避免线程池中的线程饥饿问题? (Question, Medium)
  13. 如果线程池的任务执行时间不稳定,如何优化线程池的配置? (Question, Medium)
  14. 在高并发场景下,如何避免线程池成为性能瓶颈? (Question, Hard)
  15. 你在实际项目中使用线程池遇到过什么问题?你是如何解决的? (Question, Medium)
  16. 如何使用 Java Flight Recorder (JFR) 分析线程池的性能问题? (Question, Medium)
  17. 如何避免在 Runnable 或 Callable 中抛出未捕获的异常? (Question, Medium)
  18. 如何使用 APM (Application Performance Monitoring) 工具来监控线程池的性能? (Question, Medium)
  19. 如何根据线程池的监控数据进行调优? (Question, Medium)
  20. 如何使用压力测试工具来评估线程池的性能? (Question, Medium)

These questions were contributed through the app's contribution feature.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
random-interview-platform ⬜️ Ignored (Inspect) Visit Preview Mar 20, 2025 1:11pm

@peanut996 peanut996 merged commit 86076c1 into master Mar 20, 2025
3 checks passed
@peanut996 peanut996 deleted the feature/add-questions/2025-03-20-13-11-45 branch March 20, 2025 13:12
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

Successfully merging this pull request may close these issues.

1 participant