一.命令行方式 1.打开命令行 2.输入输入命令:ifconfig en0 3.回车,即可: en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 90 ...
分类:
系统相关 时间:
2020-07-17 09:34:56
阅读次数:
88
package _interview_question /** * Check if a given array contains duplicate elements within k distance from each other. * Given an unsorted array that ...
分类:
其他好文 时间:
2020-07-17 01:23:35
阅读次数:
107
1.在线颜色 https://sunpma.com/other/rgb/ 2.阿里巴巴图库 https://www.iconfont.cn/search/index?spm=a313x.7781069.1998910419.dac382181&searchType=icon&q=%E7%99%BB% ...
分类:
Web程序 时间:
2020-07-15 16:01:30
阅读次数:
93
260 Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. ...
分类:
其他好文 时间:
2020-07-14 21:54:31
阅读次数:
104
Note GET, primarily used to select resources. Other options for an API method include: POST, primarily used to create child resources. PUT, primarily ...
摘要: 本文介绍了分布式框架的简单实现,说明了自己的设计思路,以及RPC的一些具体细节。在文末,贴出一些关于rpc的资料。 0x00:什么是RPC wiki给出的定义如下:In distributed computing, a remote procedure call (RPC) is when ...
分类:
其他好文 时间:
2020-07-13 13:47:27
阅读次数:
71
通道 Coroutine\Channel 使用本地内存,不同的进程之间内存是隔离的。 只能在同一进程的不同协程内进行 push 和 pop 操作。 Co::set(['hook_flags'=> SWOOLE_HOOK_ALL]); Co\run(function(){ // 设置一个容量为1的通道 ...
分类:
其他好文 时间:
2020-07-12 19:10:33
阅读次数:
108
1、有助于 提高锁性能 的几点建议: 1.1、减少锁持有时间 只有在必要时进行同步,这样明显 减少锁持有时间、提升系统的吞吐量; public synchronized void say(){ //do one //并发逻辑 //do other } /** * 优化后 */ public void ...
分类:
编程语言 时间:
2020-07-12 17:15:16
阅读次数:
67
Redis通过MULTI、EXEC、WATCH、DISCARD等命令来实现事务功能。主要有以下三个阶段: ##事务开始 MULTI命令的执行,标识着一个事务的开始。MULTI命令会将客户端状态的flags属性中打开REDIS_MULTI标识来完成的。 ##命令入队 当一个客户端切换到事务状态之后,服 ...
分类:
其他好文 时间:
2020-07-12 14:55:17
阅读次数:
60
1.为什么学习rust 官网的解释如下,性能好,可靠,生产力。我的理由,想看看怎么保证内存安全与线程安全的 1. 环境搭建 去网站下载 对应的rustup-init https://forge.rust-lang.org/infra/other-installation-methods.html 然 ...
分类:
其他好文 时间:
2020-07-12 14:35:30
阅读次数:
57