V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Aaarnold  ›  全部回复第 2 页 / 共 5 页
回复总数  95
1  2  3  4  5  
2024-02-23 10:58:57 +08:00
回复了 Jinnrry 创建的主题 Local LLM Google Gemma 开源没人讨论下吗?
@ahhui 谷歌的模型真的很倔,会一直犟,像吵架一样
2024-02-14 17:09:36 +08:00
回复了 momo2023 创建的主题 电影 看完《热辣滚烫》后你有什么感触呢?
想和雷佳音睡觉
2024-02-14 17:09:16 +08:00
回复了 LeeReamond 创建的主题 问与答 人类目前有没有发明出来过减肥食物。。。
@Aaarnold 还有爱玉
2024-02-14 17:08:45 +08:00
回复了 LeeReamond 创建的主题 问与答 人类目前有没有发明出来过减肥食物。。。
寒天啊
2024-02-11 14:43:32 +08:00
回复了 teterussia 创建的主题 MacBook Pro M1 芯片 mbp 使用 vs code 的时候发热很严重
这种情况我遇到过微信,一开微信就发热然后电量狂掉,最后是抹盘重装解决的,至今不知道为什么
2024-02-11 08:40:58 +08:00
回复了 sisiliuxx 创建的主题 问与答 请问送男生什么礼物比较好,价格 300 以内
我喜欢送小包,送香水,送化妆品。其实男生也很喜欢这些东西的,而且很多直男不知道怎么买买什么,甚至不好意思买,但是用得可开心了。
建议互联网搜索:公网与内网
2024-02-09 17:54:28 +08:00
回复了 akjarjash 创建的主题 OpenAI Gemini Advanced 一如既往,还是挺垃圾的🤣🤣🤣
@akjarjash “Based on these calculations, it will take approximately 8 years to reach your target amount of 800,000 yuan.” 这是 advanced 的结果
2024-02-09 17:49:26 +08:00
回复了 akjarjash 创建的主题 OpenAI Gemini Advanced 一如既往,还是挺垃圾的🤣🤣🤣
@akjarjash 中文没有 gemini ultra
2024-02-09 09:58:44 +08:00
回复了 Davy 创建的主题 Google Gemini Advanced 发布了,$20/月(头 2 个月免费)
@Davy 我没有问逻辑性很强的问题,但是日常使用问问题速度很快
2024-02-09 09:40:43 +08:00
回复了 Davy 创建的主题 Google Gemini Advanced 发布了,$20/月(头 2 个月免费)
@taotaodaddy 我发现中文和英语提问答案不是一样的,英语的回答是对的,普通 gemini 和 advanced 都这样
2024-02-09 09:32:28 +08:00
回复了 Davy 创建的主题 Google Gemini Advanced 发布了,$20/月(头 2 个月免费)
@taotaodaddy 哈哈哈哈我定的提醒是三月三十一
2024-02-09 09:29:07 +08:00
回复了 Davy 创建的主题 Google Gemini Advanced 发布了,$20/月(头 2 个月免费)
@kilasuelika 头两个月免费,我就马上试用了,先看看,目前用下来比 gpt4 好用
2024-02-09 02:58:20 +08:00
回复了 Davy 创建的主题 Google Gemini Advanced 发布了,$20/月(头 2 个月免费)
@kilasuelika gemini advanced:No, C++ Boost.Lockfree queue does not inherently support a blocking pop operation. By design, the entire library focuses on lock-free operations, meaning they avoid using traditional locks that could bottleneck threads. Instead, Boost.Lockfree relies on atomic operations and other techniques to ensure consistency without blocking.

This absence of a blocking pop doesn't mean you can't achieve a similar behavior. Here are some approaches:

**1. Busy Waiting:** This involves looping and constantly checking if the queue is empty until an element is available. This can be resource-heavy and should be used with caution.

**2. Sleep and Retry:** Similar to busy waiting, but instead of continuously checking, the thread sleeps for a short period before checking again. This reduces CPU usage but introduces latency.

**3. Event Handling:** Use platform-specific mechanisms like condition variables or POSIX semaphores. This allows the thread to be notified when an element becomes available, avoiding busy waiting or unnecessary sleeps.

**4. Consider Alternative Data Structures:** If blocking behavior is crucial, consider alternatives like `std::queue` from the C++ Standard Library or other thread-safe concurrent queue libraries that offer blocking operations.

Remember, the choice of strategy depends on your specific use case and performance requirements. Ensure you understand the trade-offs between thread safety, performance, and resource usage before implementing any solution.
为什么你要介意呢,不应该左耳进右耳出吗
2024-01-31 08:37:30 +08:00
回复了 shaonian 创建的主题 分享创造 做了三个红包封面,分享给大家啦
感谢感谢
2024-01-30 11:18:42 +08:00
回复了 ddzy 创建的主题 Apple iOS 17.3 已修复控制中心的音量控件回弹的问题
没有,稳定触发
2024-01-29 12:10:00 +08:00
回复了 godbasin 创建的主题 分享创造 来领红包封面啦!
好看,谢谢楼主
2023-12-22 01:52:38 +08:00
回复了 johnzr 创建的主题 macOS MacOS 系统下好用的输入法
🐀须管
1  2  3  4  5  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   985 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 21:04 · PVG 05:04 · LAX 14:04 · JFK 17:04
Developed with CodeLauncher
♥ Do have faith in what you're doing.