会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
HappyTeemo
当你停下来休息的时候,不要忘记别人还在奔跑!
博客园
首页
新随笔
联系
订阅
管理
2025年3月9日
Redis的淘汰算法
摘要: 一、过期策略 定时删除 在设置键的过期时间的同时,创建一个定时器,让定时器在键的过期时间来临时,立即执行对键的删除操作。 优点:对内存非常友好(删的很快) 缺点:对CPU时间非常不友好(定时器消耗资源) 惰性删除 放任过期键不管,每次获取键时,检查该键是否过期,过期就删,没有过期就返回键。 优点:对
阅读全文
posted @ 2025-03-09 17:23 快乐的提千万
阅读(61)
评论(0)
推荐(0)
2025年3月7日
PHP 取毫秒
摘要: if (!function_exists('msec_time')) { function msec_time() { [$msec, $sec] = explode(' ', microtime()); $msectime = (float)sprintf('%.0f', (floatval($m
阅读全文
posted @ 2025-03-07 18:20 快乐的提千万
阅读(10)
评论(0)
推荐(0)
2024年10月28日
【网络编程】文件传输
摘要: //服务器端: #include <iostream> #include <string> #include <cstring> #include <cstdio> #include <cstdlib> #include <sys/types.h> #include <sys/stat.h> #in
阅读全文
posted @ 2024-10-28 10:37 快乐的提千万
阅读(16)
评论(0)
推荐(0)
【网络编程】select和poll
摘要: select select() 确定一个或多个套接口的状态,如:需要则等待。 #include <winsock.h> int PASCAL FAR select( int nfds, fd_set FAR* readfds, fd_set FAR* writefds, fd_set FAR* ex
阅读全文
posted @ 2024-10-28 10:35 快乐的提千万
阅读(18)
评论(0)
推荐(0)
【网络编程】聊天室
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.
阅读全文
posted @ 2024-10-28 10:27 快乐的提千万
阅读(20)
评论(0)
推荐(0)
【网络编程】获取网站头条
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> #i
阅读全文
posted @ 2024-10-28 10:21 快乐的提千万
阅读(17)
评论(0)
推荐(0)
2024年10月16日
mac或者linux磁力下载方法
摘要: t-get是一个简单的命令行BT下载工具,可以用于BT种子和磁力链接的下载 tget使用Nodejs开发,基于 torrent-stream ,代码量很少 npm install -g t-get 磁力链接的下载: tget 'magnet:?xt=urn:btih:0403fb4728bd788f
阅读全文
posted @ 2024-10-16 16:28 快乐的提千万
阅读(459)
评论(0)
推荐(0)
Bootloader Linux启动
摘要: Bootloader:比如U-Boot,vivi等,通常用纯汇编或混编开发而成,其主要作用是初始化硬件设备,加载操作系统内核 操作系统内核(Kernel):内存管理,进程管理,网络系统,挂载根文件系统等等 执行init进程 根文件系统(RootFS):配置文件,系统文件等等 启动第一步--加载BIO
阅读全文
posted @ 2024-10-16 16:25 快乐的提千万
阅读(141)
评论(0)
推荐(0)
运行级别和init详解
摘要: init模块 一般来说,Linux程序只能用另一个Linux程序启动。例如,登录Linux终端程序Mingetty。 但终端程序又由谁启动呢?在计算机上启动Linux时,内核装入并启动init程序。然后init程序装载硬盘和启动终端程序。登录终端程序时,它启动命令行界面Shell。在计算机上启动Li
阅读全文
posted @ 2024-10-16 16:22 快乐的提千万
阅读(62)
评论(0)
推荐(0)
2024年7月1日
win11添加开机自启动
摘要: 方法1 win + R 打开运行,输入 shell:startup 会打开一个文件夹 将想要启动的程序快捷方式放进文件夹 在设置里面搜索“启动”,可以看到开机启动项,确认已经打开。 以上,针对不用管理员权限启动的程序,有效。 方法2 下面看需要管理员权限的: 按Win+R,输入regedit,打开注
阅读全文
posted @ 2024-07-01 19:12 快乐的提千万
阅读(1456)
评论(0)
推荐(0)
下一页
公告