【原创】Java并发编程系列05|深入理解volatile收录于话题#进阶架构师|并发编程专题12个思维导图写在前面本篇文章介绍并发编程中常用的volatile关键字。主要介绍两方面内容:volatile有哪些特性,可以用来做什么?volatile实现原理。1.保证可见性volatile保证了不同线程对volatile修饰变量进行操作时的可见性。对一个volatile变量的读,(任意线程)总是能看
分类:
编程语言 时间:
2020-11-25 12:14:21
阅读次数:
7
using NLog; using System; using System.IO.Ports; using System.Text; using System.Threading; namespace TestCom485 { class Program { static void Main(st ...
分类:
其他好文 时间:
2020-11-24 12:42:10
阅读次数:
9
Base64代码 base64.c #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> // bindata待编码数据buffer base64 编码后数据 ...
分类:
其他好文 时间:
2020-11-24 12:13:36
阅读次数:
7
最近生产环境在这两个参数之间遇到过几次坑。这里记录下。 client_max_body_size client_max_body_size 默认 1M,表示 客户端请求服务器最大允许大小,在“Content-Length”请求头中指定。如果请求的正文数据大于client_max_body_size, ...
分类:
其他好文 时间:
2020-11-23 12:01:24
阅读次数:
6
位置:rgw / rgw_rest.cc 2523 1 RGWHandler_REST *RGWREST::get_handler(rgw::sal::RGWRadosStore *const store, 2 struct req_state *const s, 3 const rgw::auth ...
分类:
其他好文 时间:
2020-11-21 12:28:04
阅读次数:
7
1、Innodb_flush_log_at_trx_commit: 控制redo 往os buffer、磁盘 刷写的策略 (0) 每秒将redo buffer往os buffer(操作系统文件缓冲区) 刷写,每秒将os buffer同步到磁盘,如果宕机,会丢失一秒内的所有事务 (1) 事务每次com ...
分类:
数据库 时间:
2020-11-20 11:29:13
阅读次数:
15
视频编码中,经常提到I帧。I帧只使用帧内压缩,不能除去帧间冗余度。P帧做帧间编码,根据当前帧与前面最近的I帧或P帧的差别来编码。 另外一个比较少提到的概念是IDR帧。IDR属于I帧,但是I帧不一定是IDR帧。解码器收到IDR帧时,将reference buffer清空;而收到I帧不会清空refere ...
分类:
其他好文 时间:
2020-11-18 13:20:55
阅读次数:
18
(function initApp(){ loadApp(); })() function loadApp (){ tenantContId().then((res)=>{ localStorage.setItem("tenantId",res) new Vue({ router, store, r ...
分类:
其他好文 时间:
2020-11-17 11:53:37
阅读次数:
4
mongodb 官方的go驱动包 go.mongodb.org/mongo-driver 使用起来比较繁琐,最近对其进行了二次封装 github地址:https://github.com/w3liu/go-common/tree/master/store/mongo测试用例如下: func Test ...
分类:
数据库 时间:
2020-11-13 13:16:09
阅读次数:
40
Preface 最后四天,最后四场! A - Ice Tea Store 有手就行,考虑偶数部分和多出的一个$0/1$分别用什么买最优即可 #include<cstdio> #include<iostream> #define RI register int #define CI const int ...
分类:
其他好文 时间:
2020-11-13 12:58:36
阅读次数:
6