V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  movq  ›  全部回复第 7 页 / 共 75 页
回复总数  1494
1 ... 3  4  5  6  7  8  9  10  11  12 ... 75  
你看了什么帖子
2023-03-25 14:21:05 +08:00
回复了 movq 创建的主题 程序员 文石 leaf 还是小米多看 pro2 代?
@oooolongtea 没用 kindle 了
2023-03-24 08:22:59 +08:00
回复了 movq 创建的主题 Apple 一个叫做‘wifi’的进程占用巨量内存
@chztv
@seanzxx 问题是不看虚拟内存,就看活动监视器显示的内存,也占了 4G 多,这也很大吧
2023-03-23 22:07:14 +08:00
回复了 movq 创建的主题 程序员 文石 leaf 还是小米多看 pro2 代?
@oooolongtea 用得感觉挺好的,没遇到品控问题,而且我是实用主义的,对品控也不在乎
2023-03-23 16:27:13 +08:00
回复了 Vvictor 创建的主题 macOS 关于 MacOS 上 Warp 的一个问题,求教
我是 git log 显示中文乱码
2023-03-09 19:33:33 +08:00
回复了 movq 创建的主题 Apple ios 的 kindle app 登录之后什么都不显示
@RiverMud 说是 2024 年 6 月 30 才停止服务
13 寸哪来的 m2max
2023-03-04 09:34:32 +08:00
回复了 13927131347 创建的主题 macOS Mac 抖 yin 都用电脑版还是 ios 版啊
我 y 般 b 用 dou 阴
2023-03-04 00:22:50 +08:00
回复了 movq 创建的主题 Apple 搜狗输入法中文输入状态下无法输出中文标点了
@paynezhuang 已经尝试过但是没用
2023-02-24 15:57:04 +08:00
回复了 movq 创建的主题 程序员 怀疑硬盘文件有丢失,感到疑神疑鬼,如何解决这种困扰
@imnpc opencore 的貌似是存储在 plist 文件里面的吧,我后来重新关闭 SIP 也是改 plist
@chouchen 有什么更好的替代呢
2023-02-20 18:16:05 +08:00
回复了 mrtungleung 创建的主题 Apple Macbook M1 Pro,不到 4 个月就坏了
你眼睁睁看着蟑螂通过后盖的缝隙钻进去了?
2023-02-19 14:51:32 +08:00
回复了 movq 创建的主题 Apple iPad Pro 屏幕有白斑能不能换电池的方式换整机
@meishiwanwan520 你的意思是白斑作为性能故障在保内换机吗?我的意思是我已经过保了,但是出现了白斑。想换电池来换整机,不知道会不会因为有白斑而被拒绝
2023-02-18 15:27:35 +08:00
回复了 movq 创建的主题 程序员 哲学家就餐问题的一个解法
@yankebupt

你说的这个是你自己想的吧。我的意思是第一个筷子先阻塞式锁,第二个筷子非阻塞锁。你的说法是第一个筷子也非阻塞锁。

不过感觉先锁桌子,然后左右 tryLock 也是可以的。
2023-02-18 08:15:43 +08:00
回复了 movq 创建的主题 程序员 哲学家就餐问题的一个解法
@lessMonologue 笑死人,已 block😁
2023-02-17 23:46:47 +08:00
回复了 movq 创建的主题 程序员 哲学家就餐问题的一个解法
@Nerv 那你的意思是对凡是已经有定论的的东西都绝对不要提出个人想法是么
2023-02-17 23:45:50 +08:00
回复了 movq 创建的主题 程序员 哲学家就餐问题的一个解法
@Nerv 来 v 站发帖不就是为了看大家意见从而学习吗?光思考的话为什么要发帖子呢?我认为自己是对的不就行了
2023-02-17 23:20:16 +08:00
回复了 movq 创建的主题 程序员 哲学家就餐问题的一个解法
我总结一下死锁和活锁的对比,以下来自于《 C++ Concurrency in Action 》

1.死锁没法救活,除非编程时就避免。这一点活锁有优势,因为活锁就算你编程时不避免,由于 CPU 的调度存在一定的偏差,也有可能可以自行脱离活锁。(可以看引用的“not-so-serious cases”)
2.死锁发生时因为是等待,所以不会自旋,不占 CPU ,这方面是比活锁好的。


> Deadlock - As you saw in chapter 3, in the case of deadlock, one thread is waiting for another, which is in turn waiting for the first. If your threads deadlock, the tasks they're supposed to be doing won't get done. In the most visible cases, one of the threads involved is the thread responsible for the user interface, in which case the interface will cease to respond. In other cases, the interface will remain responsive, but some required tasks won't complete, such as a search not returning or a document not printing.

> Livelock - Livelock is similar to deadlock in that one thread is waiting for another, which is in turn waiting for the first. The key difference here is that the wait is not a blocking wait but an active checking loop, such as a spin lock. In serious cases, the symptoms are the same as deadlock (the app doesn't make any progress), except that the CPu usage is high because threads are still running but blocking each other. In not-so-serious cases, the livelock will eventually resolve because of the random scheduling, but there will be a long delay in the task that got livelocked, with a high CPU usage during that delay.
2023-02-17 23:15:48 +08:00
回复了 movq 创建的主题 程序员 哲学家就餐问题的一个解法
@lessMonologue 这么说吧,不知道你哪来的莫名的优越感。

一开始你根本没看懂我在说什么,就打几个逗号表示无语,说每个人拿个筷子就能反驳我这种做法。结果反而让自己成了小丑。

后来又强行说什么「如果随机事件恰好相同呢?」这种脑残假设

我反驳之后又来信口开河说什么“恰好相反”,结果你对你的主张的论证漏洞百出

真是笑死人
1 ... 3  4  5  6  7  8  9  10  11  12 ... 75  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2917 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 11:40 · PVG 19:40 · LAX 04:40 · JFK 07:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.