本文详解同步、异步、阻塞、非阻塞,以及IO与这四者的关联,毕竟我当初刚认识这几个名词的时候也是一脸懵。 🔥1.同步阻塞、同步非阻塞、异步阻塞、异步非阻塞 1.同步 同步就是多个事物不能同时工作,只能依次排队进行 2.异步 多个事物可以同时工作,不用依次进行 3.阻塞 线程需要停止等待 4.非阻塞 ...
分类:
其他好文 时间:
2021-07-12 18:13:04
阅读次数:
0
在使用MapReduce的小测试的时候,Driver类启动,或报下面的错误 log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory). log4j: ...
分类:
编程语言 时间:
2021-07-12 18:06:41
阅读次数:
0
Hexo部署过程中可能会出现错误 fatal: unable to access 'https://github.com/a956551943/a956551943.github.io/': Encountered end of file FATAL { err: Error: Spawn fail ...
分类:
其他好文 时间:
2021-07-12 17:48:17
阅读次数:
0
4. Github Pages 搭建网站 个人站点 访问 https://用户名.github.io 搭建步骤 1) 创建个人站点 -> 新建仓库(注:仓库名必须是【用户名.github.io】) 2) 在仓库下新建index.html的文件即可 脚下留心 1、github pages 仅支持静态网 ...
分类:
Web程序 时间:
2021-07-05 19:00:18
阅读次数:
0
CentOS7防火墙命令有变化: CentOS7: systemctl status firewalld.service 查看防火墙状态 systemctl stop firewalld.service 本次访问关闭防火墙 systemctl disable firewalld.service 从下 ...
分类:
其他好文 时间:
2021-07-05 18:49:21
阅读次数:
0
####环境 Django安装django-redis pip install django-redis Linux安装redis centos为例 进入官网找到下载地址 https://redis.io/download 下载完成后解压:tar -zxvf redisxxxx.tar.gz 解压完 ...
分类:
其他好文 时间:
2021-07-05 18:27:08
阅读次数:
0
1、启动服务 systemctl restart mysqld.service 报错: 启动数据库Can‘t connect to MYSQL server through socket ''var/lib/mysql/mysql.cock(146 lock timed out:Retry tran ...
分类:
数据库 时间:
2021-07-05 17:35:04
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
file1=new File(path);//path 为文件地址String parentPath=file1.getParent();parentPath为path的父级目录String[] arr=null;//用来验证文件是否为空文件File parentFile=new File(pare ...
分类:
编程语言 时间:
2021-07-02 16:09:34
阅读次数:
0