愤怒中的小草

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页

2019年3月24日 #

摘要: package com.example.demohystrix.process; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; import io.netty.channel.Channel... 阅读全文
posted @ 2019-03-24 20:37 愤怒中的小草 阅读(207) 评论(0) 推荐(0) 编辑

2019年3月20日 #

摘要: public class ReentrantDemo { //重入锁 保护临界区资源count,确保多线程对count操作的安全性 /*public static ReentrantLock rtlock = new ReentrantLock(); public static int count = 0; Thread t = new Thread(new Ru... 阅读全文
posted @ 2019-03-20 09:54 愤怒中的小草 阅读(125) 评论(0) 推荐(0) 编辑

摘要: public class InternDemo { public static void main(String[] args){ /* jdk7版本之后 字符串常量池从Perm Space移到Java Heap */ //生成两个对象 String s1 = new String("aaa"); ... 阅读全文
posted @ 2019-03-20 09:53 愤怒中的小草 阅读(208) 评论(0) 推荐(0) 编辑

2019年3月19日 #

摘要: public class InterruptDemo { public static void main(String[] args) throws InterruptedException{ Thread t1 = new Thread(){ public void run(){ while (t 阅读全文
posted @ 2019-03-19 15:56 愤怒中的小草 阅读(550) 评论(0) 推荐(0) 编辑

2019年3月18日 #

摘要: 1.java内存结构,也就是运行时的数据区域 堆(heap)、栈(stack)、本地方法栈(native method stack)、方法区(method area)、程序计数器(program counter register) 2.java内存模型 三个重要特性:原子性、可见性、有序性 可见性的 阅读全文
posted @ 2019-03-18 09:39 愤怒中的小草 阅读(150) 评论(0) 推荐(0) 编辑

2019年3月17日 #

摘要: 1. 安装源码管理工具 2. 下载源码 3. 编译环境准备 4. 编译配置 5. 编译 6. 测试用例测试 阅读全文
posted @ 2019-03-17 16:23 愤怒中的小草 阅读(313) 评论(0) 推荐(0) 编辑

2019年3月16日 #

摘要: import java.util.concurrent.atomic.AtomicReference;//boolean compareAndSet(V expect, V update)//如果当前值 == 预期值,则以原子方式将该值设置为给定的更新值public class SpinLockDe 阅读全文
posted @ 2019-03-16 19:25 愤怒中的小草 阅读(1585) 评论(0) 推荐(0) 编辑

2019年3月15日 #

摘要: 1. 首先安装ftp 2. 修改配置文件 cd /etc/vsftpd /etc/vsftpd/vsftpd.conf //主配置文件,核心配置文件 /etc/vsftpd/ftpusers //黑名单,这个里面的用户不允许访问FTP服务器 /etc/vsftpd/user_list //白名单,允 阅读全文
posted @ 2019-03-15 17:59 愤怒中的小草 阅读(320) 评论(0) 推荐(0) 编辑

2019年3月7日 #

摘要: 概念解析 并发机制依赖于JVM的实现和CPU的指令1. volatile一般在多线程中使用,保证共享变量的可见性,解决并发带来的问题 可见性意思就是一个线程修改另外一个线程可以看到修改后的值,通过排它锁单独获得这个变量 volatile执行成本低,因为不会引起线程上下文的切换和调度 synchron 阅读全文
posted @ 2019-03-07 19:48 愤怒中的小草 阅读(311) 评论(0) 推荐(0) 编辑

摘要: gitlab备份步骤 https://blog.csdn.net/qq_31666147/article/details/79844107 gitlab版本 下载地址 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ gitlab-ce- 阅读全文
posted @ 2019-03-07 16:02 愤怒中的小草 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页