博客
关于我
20个常见面试问题整理系列之—多线程
阅读量:347 次
发布时间:2019-03-03

本文共 1147 字,大约阅读时间需要 3 分钟。

Java??????????

?Java???????????????????????????????????????Java??????????????????????????

????????

???Java????????????????????????1-10????????5???setPriority()??????????????????MIN_PRIORITY?1??NORM_PRIORITY?5??MAX_PRIORITY?10??????????????????????CPU?????

??????

???????????????????????????????????

  • synchronized????????????????????????????????????????????????????????

  • synchronized??????sync?????????????????????????

  • ReentrantLock????????????????????????????????

  • ThreadLocal???????????????????????????

  • ?????????

    ???????????????????????????????????????????

    • ?????????????????????????
    • ?????????????????????????????????

    ????????

    ?????Daemon Thread??Java???????????????????????????????????????????????????????????????????????

    ????Executor??

    ?????ThreadPoolExecutor??????????????????????????

  • ??????????????????????????????????
  • ???????????????????shutdown()?shutdownNow()????????
  • ?????corePoolSize????????maximumPoolSize????????workQueue???????
  • ?????????

    ?Java????????????????????ConcurrentHashMap?CopyOnWriteArrayList???????CAS????????????????????????????

    ?????

    ??????????????????????????????????????????????????????

    ?????????????????????????????????????

    转载地址:http://dmzq.baihongyu.com/

    你可能感兴趣的文章
    postgis数据库优化_postgresql 性能优化
    查看>>
    postgis求面积、交集等相关函数
    查看>>
    postgis相关函数
    查看>>
    Postgres Docker版本安装mysql_fdw 插件
    查看>>
    Postgres invalid command \N数据恢复处理
    查看>>
    Postgres like 模糊查询匹配集合
    查看>>
    Postgres 自定义函数内实现 in 操作符的递归查询
    查看>>
    Postgres 返回当前时间前后指定天数的集合
    查看>>
    postgres--vacuum
    查看>>
    postgres--wal
    查看>>