Skip to content

Repository files navigation

这是一些关于多线程的 demo,用来演示一些多线程的技巧

目录介绍


SimpleWaitNotify

使用 Wait-Notify 最简单的生产者消费者


FlagWaitNotify

其实跟 SimpleWaitNotify 差不多


LimitWaitNotify

多个生产者和多个消费者,其中关于 wait 和 notify 的使用比较有趣


ConditionABC

使用 Condition 来实现生产者和消费者,以及顺序打印 abc


OfficialAQS

使用官方的 Demo 实现 AQS

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages