码迷,mamicode.com
首页 >  
搜索关键字:chan    ( 331个结果
所有anaconda安装包失败的解决办法汇总
1.首先确认镜像源为稳定镜像源(现在最稳定的是清华镜像源) 附更换清华镜像源的方式: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add chan ...
分类:其他好文   时间:2019-07-20 13:14:28    阅读次数:283
closed channel
```go func Test_chanel(t testing.T) { c := make(chan int, 1) go func() { time.Sleep(time.Second 3) close(c) }() for { select { case i := ...
分类:其他好文   时间:2019-07-18 21:11:29    阅读次数:134
go的管道和select
无缓冲管道:创建方式1.make(chan int) 2. var c chan int 当管道写入一个数据时,就得从管道读出,否则会阻塞。 有缓冲管道:make(chan int,2) 管道最多可容纳2个数据,超出之后会阻塞。 select:每个case必须都是一个通信 如果没有事件发生则会一直阻 ...
分类:其他好文   时间:2019-07-11 20:45:37    阅读次数:161
golang的缓冲channel简单使用
golang的缓冲channel简单使用 [toc] 我们常用的是无缓冲channel : 其实make() 创建chan的第二个参数可设置缓冲channel的大小。 上述语句等价于 make(chan type, 1) 即创建了一个缓冲区大小为1channel 下面看有缓冲channel的两个例子 ...
分类:其他好文   时间:2019-06-30 00:02:31    阅读次数:146
Centos7.2——自定义系统服务
前言 顾明思议,自己创建系统服务,在上一篇博文中写道了,这里就详细写下~ 步骤 我是一段美丽的用户分割的废话~ 进入到系统服务目录 ··· cd /lib/systemd/system ··· 创建服务文件 ··· vi chandao.service [Unit] Description=chan ...
分类:其他好文   时间:2019-06-14 23:32:44    阅读次数:117
【GO】golang 协程初探 ,基于生产者/消费者
```go package main import ( "fmt" "time" ) func main() { // 管道 固定5个int ch := make(chan int, 5) // 生成者 协程 // 管道只能存5个int, 但是要生产15个int, 这就要等消费者先消费完(未消费前生 ...
分类:其他好文   时间:2019-06-14 16:41:46    阅读次数:110
PostgreSQL数据库表的内部结构
A page within a table contains three kinds of data described as follows: pd_lsn – This variable stores the LSN of XLOG record written by the last chan ...
分类:数据库   时间:2019-05-28 12:50:56    阅读次数:151
try modify only bsw configuration
Hall: Emios_cfg.h #define EMIOS_CHANNEL_HALL_A1 EMIOS_CHANNEL_15#define EMIOS_CHANNEL_HALL_A2 EMIOS_CHANNEL_14#define EMIOS_CHANNEL_HALL_B1 EMIOS_CHAN ...
分类:其他好文   时间:2019-05-20 15:33:25    阅读次数:107
捕获Ctrl + C中断 优雅的退出程序 golang
捕获Ctrl + C中断 优雅的退出程序 "Gracefully terminate a program in Go" "os/signal" 来捕获系统中断等信号 // Notify方法将signal发送到channel, func Notify(c chan ...
分类:其他好文   时间:2019-05-03 18:47:58    阅读次数:369
Axure设计软件下载安装及注册
如图:本地计算机安装了两个版本的Axure,但8版的有问题,点击保存软件就退出了;7版本要想使用的注册授权 https://blog.csdn.net/botree_chan/article/details/76040739 用这个就可以使用了 Axure的官方下载网址 http://www.axu ...
分类:其他好文   时间:2019-04-02 12:34:20    阅读次数:178
331条   上一页 1 ... 6 7 8 9 10 ... 34 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!