Skip to content

gongzizhao/JavaBasic

Repository files navigation

Thread

Thread Learning

  1. 创建线程的2种方式: ------com
    1. extends Thread;
    2. implements Runnable :避免了单继承的局限性;增强了程序的扩展性,降低了程序的耦合性
  2. 同步机制/Lock解决线程安全问题: ------safety
  3. 等待唤醒机制:wait/notify:------WaitAndNotify
  4. JDK1.5后,JDK内置了线程池:------ThreadPool
  5. Lambda函数式编程:标准格式:(参数列表)->{一些重写方法的代码}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages