blessingsi 最近的时间轴更新
blessingsi

blessingsi

V2EX 第 321561 号会员,加入于 2018-06-09 16:05:26 +08:00
今日活跃度排名 379
blessingsi 最近回复了
14 小时 55 分钟前
回复了 honhon 创建的主题 Linux Linux 文件夹所有者,无权限打开该目录是什么问题
cd 进目录需要文件夹的 x 权限。chmod +x data
3 天前
回复了 ben548 创建的主题 Redis 一个 abtest 实验中 redis 设计的思考
不管是 hash 还是 bitmap 都分片存就行了吧
14 天前
回复了 code4world 创建的主题 问与答 618 组装台 ITX 小主机怎么样?
去年 618 装了台 itx ,几个痛点
1. 主板电源更贵,选择更少。
2. 新手,理线理得痛不欲生。最后直接塞进去,盖上侧板拉倒
3. 遇到问题,需要拆装的时候,装机的痛苦会翻倍
优点:可以放到租房的小桌子上面,玩起来比笔记本爽很多
前司升降桌,体验很好。现在公司自己买了升降台用,感觉一般,桌面可用空间变少了不少
16 天前
回复了 aqiu111 创建的主题 程序员 Java 开发有必要使用 Linux 系统吗
做 Java 一定要熟悉 Linux ,因为你的代码大概率是跑在 Linux server 的。
而个人认为熟悉 Linux 最有效的办法就是日常天天用,会遇到很多问题,然后想办法去解决。而且大四不折腾,啥时候折腾哇,现在只后悔当年没折腾尽兴
看到的打印的顺序和实际方法开始执行的顺序是没有一致性保证的。而且 jdk17 和 jdk8 的 sout 方法实现也变了。
@yodhcn 在 run 方法开始的时候记录一下时间。
```
var now= system.nanotime();
sour("执行中,task" + "xxxx" + now);
```
java8:
```
执行中, Task: 0, Thread: pool-1-thread-1, queue.size: 0, time: 425747251451497
执行中, Task: 1, Thread: pool-1-thread-2, queue.size: 0, time: 425747251525194
执行中, Task: 10, Thread: pool-1-thread-3, queue.size: 8, time: 425747251772510
执行中, Task: 11, Thread: pool-1-thread-4, queue.size: 8, time: 425747251892745
执行中, Task: 12, Thread: pool-1-thread-5, queue.size: 8, time: 425747251928019
拒绝中, [email protected], queue.size: 8, time: 425747251889215
拒绝中, [email protected], queue.size: 8, time: 425747252008173
执行中, Task: 2, Thread: pool-1-thread-3, queue.size: 0, time: 425749253444220
执行中, Task: 3, Thread: pool-1-thread-1, queue.size: 1, time: 425749254108044
执行中, Task: 4, Thread: pool-1-thread-4, queue.size: 2, time: 425749254203373
执行中, Task: 5, Thread: pool-1-thread-5, queue.size: 3, time: 425749254286334
执行中, Task: 6, Thread: pool-1-thread-2, queue.size: 4, time: 425749254359863
执行中, Task: 7, Thread: pool-1-thread-3, queue.size: 5, time: 425751254069256
执行中, Task: 8, Thread: pool-1-thread-2, queue.size: 6, time: 425751259174650
执行中, Task: 9, Thread: pool-1-thread-4, queue.size: 7, time: 425751259199900
```

java17:
```
拒绝中, [email protected], queue.size: 8, time: 425953431226281
拒绝中, [email protected], queue.size: 8, time: 425953447958506
执行中, Task: 10, Thread: pool-1-thread-3, queue.size: 8, time: 425953430891601
执行中, Task: 11, Thread: pool-1-thread-4, queue.size: 8, time: 425953431206209
执行中, Task: 1, Thread: pool-1-thread-2, queue.size: 0, time: 425953430740641
执行中, Task: 0, Thread: pool-1-thread-1, queue.size: 0, time: 425953430633193
执行中, Task: 12, Thread: pool-1-thread-5, queue.size: 8, time: 425953431287397
执行中, Task: 3, Thread: pool-1-thread-2, queue.size: 1, time: 425955450935401
执行中, Task: 4, Thread: pool-1-thread-5, queue.size: 2, time: 425955450944853
执行中, Task: 2, Thread: pool-1-thread-4, queue.size: 0, time: 425955450921501
执行中, Task: 6, Thread: pool-1-thread-3, queue.size: 4, time: 425955451482689
执行中, Task: 5, Thread: pool-1-thread-1, queue.size: 3, time: 425955451440625
执行中, Task: 7, Thread: pool-1-thread-2, queue.size: 5, time: 425957453093453
执行中, Task: 8, Thread: pool-1-thread-5, queue.size: 6, time: 425957453281909
执行中, Task: 9, Thread: pool-1-thread-4, queue.size: 7, time: 425957453416090
```

实际运行的时间和 sout 看到的顺序是不一样的
34 天前
回复了 ltltfuture 创建的主题 问与答 求助 Linux 对 intel 大小核支持怎么样
在用 12600k ,平时使用没啥感知,不过可能是日常也没有很重的工作。
个人经验,毕业后第一份工作最好别去小公司,很容易被培养成野路子。
关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   874 人在线   最高记录 5634   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 22:09 · PVG 06:09 · LAX 15:09 · JFK 18:09
Developed with CodeLauncher
♥ Do have faith in what you're doing.