网站首页 站内搜索

搜索结果

查询Tags标签: Wed,共有 7条记录
  • linux中一次性计划任务服务at命令

    1、创建计划任务服务[root@centos7pc1 test2]# ls [root@centos7pc1 test2]# date Wed Apr 6 17:16:12 CST 2022 [root@centos7pc1 test2]# at now+2 min ## 设置任务时间, 2分钟后 at> touch a.txt ## 设置执行的命令 at> <EOT> …

    2022/4/7 7:23:52 人评论 次浏览
  • python 进程池实现 pool

    进程池实现 必要性 进程的创建和销毁过程消耗的资源比较多当任务量众多,每个任务在很短时间内完成时,需要平方的创建和销毁进程,此时对计算机压力比较大进程池技术很好的解决了以上问题 原理创建一定数量的进程来处理事件,事件处理完进程不退出而是继续处理其他事件,直到所…

    2021/12/16 7:15:33 人评论 次浏览
  • python 进程池实现 pool

    进程池实现 必要性 进程的创建和销毁过程消耗的资源比较多当任务量众多,每个任务在很短时间内完成时,需要平方的创建和销毁进程,此时对计算机压力比较大进程池技术很好的解决了以上问题 原理创建一定数量的进程来处理事件,事件处理完进程不退出而是继续处理其他事件,直到所…

    2021/12/16 7:15:33 人评论 次浏览
  • Python -- 多线程(1)

    边听音乐,边看电影。串行需要18秒,并行需要10秒from time import ctime,sleep import threading def music(func):for i in range(2):print(开始听音乐%s 时间:%s%(func,ctime()))sleep(4)print(结束听音乐 时间:%s%ctime())def movie(func):for i in range(2):…

    2021/12/16 1:11:32 人评论 次浏览
  • Python -- 多线程(1)

    边听音乐,边看电影。串行需要18秒,并行需要10秒from time import ctime,sleep import threading def music(func):for i in range(2):print(开始听音乐%s 时间:%s%(func,ctime()))sleep(4)print(结束听音乐 时间:%s%ctime())def movie(func):for i in range(2):…

    2021/12/16 1:11:32 人评论 次浏览
  • ubuntu20.04调整时区时间同步

    root身份操作#检查系统时区 timedatectl ---Local time: Wed 2020-05-06 19:33:20 UTCUniversal time: Wed 2020-05-06 19:33:20 UTCRTC time: Wed 2020-05-06 19:33:22 Time zone: UTC (UTC, +0000) System clock synchronized: yes …

    2021/10/27 7:14:54 人评论 次浏览
  • ubuntu20.04调整时区时间同步

    root身份操作#检查系统时区 timedatectl ---Local time: Wed 2020-05-06 19:33:20 UTCUniversal time: Wed 2020-05-06 19:33:20 UTCRTC time: Wed 2020-05-06 19:33:22 Time zone: UTC (UTC, +0000) System clock synchronized: yes …

    2021/10/27 7:14:54 人评论 次浏览
扫一扫关注最新编程教程