- 博客(271)
- 收藏
- 关注
原创 揭秘操作系统文件描述符的最大数量:计算方法解析
操作系统最大可设置的文件描述符数量是由多个因素决定的,主要包括内核参数、系统资源(如内存)以及系统架构的限制。以下是详细的计算方式和影响因素:操作系统通过内核参数来限制文件描述符的最大数量。主要的参数包括:默认值通常是根据系统内存大小动态计算的,公式大致为:例如,如果系统有 8GB 内存(8388608 KB),则 大约为:可以通过修改 文件来调整:然后运行 使更改生效。1.2 这是单个进程可以打开的文件描述符的最大数量。可以通过 文件查看当前值:默认值通常是 (即 102
2025-03-03 09:30:24
613
原创 如何理解 epoll 中的水平触发 (LT) 和边缘触发 (ET)
水平触发(LT):重复提醒,直到你处理完为止;边缘触发(ET):只提醒一次,错过了就没。
2024-12-02 22:14:47
422
原创 如何理解 select、poll 和 epoll (大白话版)
用生活中的场景类比,可以更容易理解 `select`、`poll` 和 `epoll` 的工作原理和区别。
2024-12-02 22:11:15
535
原创 如何理解select、poll 和 epoll(专业版)
`select`、`poll` 和 `epoll` 是 Linux 系统中用于处理多路 I/O 复用的系统调用,它们主要用于监控多个文件描述符(如网络套接字)以判断是否有数据可以进行读写操作
2024-12-02 22:09:22
450
原创 Shebang(Hashbang)是什么
**Shebang**(也叫 **hashbang**)是一个特殊的字符序列,通常出现在脚本文件的第一行,用于指定该脚本应该由哪个解释器来执行
2024-12-01 20:17:35
631
原创 What is shebang or hashbang in script
A **shebang** (also known as **hashbang**) is a special sequence of characters at the beginning of a script file that indicates which interpreter should be used to execute the script.
2024-12-01 20:15:50
1070
原创 How to Use the Traceroute Command: A Step-by-Step Guide
Traceroute is a powerful tool for diagnosing network issues, and with its advanced options, you can tailor it to suit your specific use case.
2024-11-20 17:11:10
806
原创 The Architecture and Design of Dramatiq
【代码】The Architecture and Design of Dramatiq。
2024-11-19 21:33:28
680
原创 Dramatiq 架构与设计
Dramatiq 的架构与设计以模块化为核心,结合 Actor、Broker 和 Worker 等模块,构建了一套可靠、高效、可扩展的分布式任务处理框架。Middleware 是 Dramatiq 的可插拔扩展机制,可以在任务的各个阶段(消息发送、接收、执行等)插入自定义逻辑。Dramatiq 是一个为分布式任务处理设计的轻量级异步任务队列系统,其架构和设计理念聚焦于。Worker 是后台运行的进程,从 Broker 中消费消息并执行对应的任务。装饰器定义的函数,表示可异步执行的任务。
2024-11-19 21:28:50
1217
原创 How To find the executable path of Chrome
【代码】How To find the executable path of Chrome。
2024-11-17 17:55:01
291
原创 How To open Chrome with proxy server
【代码】How To open Chrome with proxy server。
2024-11-17 17:51:36
988
原创 如何在 Dramatiq 中选择消息代理:Redis 与 RabbitMQ 对比指南
Redis 和 RabbitMQ 作为Dramatiq Broker的对比总结
2024-11-07 18:05:32
470
原创 Choosing Between Redis and RabbitMQ as Brokers in Dramatiq: A Comparative Guide
Choosing Between Redis and RabbitMQ as Brokers in Dramatiq: A Comparative Guide
2024-11-07 18:02:08
1082
原创 vscode extension 内部通信的几种方式
在 VSCode 扩展中,内部通信有多种方式可选,具体选择哪种方式取决于你的应用场景和需求。使用 Commands 是最常见和直接的方式,而 EventEmitter 适用于事件驱动的场景。Webview 和 Extension Host 之间的通信通常用于展示和处理复杂的 UI,而 Global State 和 Workspace State 则用于持久化和共享数据。依赖注入和扩展 API 适用于更复杂的模块化和跨扩展通信。
2024-08-23 13:55:08
1026
1
原创 How to print the final Query sent to Elasticsearch in elasticsearch-dsl-py
# ElasticSearch # ElasticSearch DSL
2024-03-07 08:57:38
470
原创 How to Implement a scrollbar using Web Component
# Web Component # Scrollbar
2024-02-24 08:58:26
656
原创 How to Implement a skeleton using Web Component
# Web Component # Skeleton
2024-02-19 09:17:47
609
原创 How to Implement a transfer using Web Component
# Web Component # Transfer
2024-02-18 09:05:21
1007
原创 How to Implement a timeline using Web Component
# Web Component # Timeline
2024-02-17 12:59:42
1076
原创 How to Implement a carousel using Web Component
# Web Component # Carousel
2024-02-16 08:27:51
1472
原创 How to Implement a cascader using Web Component
# Web Component # Cascader
2024-02-15 10:13:02
1286
原创 How to Implement a datetime picker using Web Component
# Web Component # Datetime Picker
2024-02-12 09:35:38
676
原创 How to Implement a date picker using Web Component
# Web Component # Date Picker
2024-02-11 21:34:51
841
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人