计算机基础
mdzzname
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CSAPP Lab5: Malloc
本文为USTC SSE CSAPP 2020 Fall实验三的记录,仅供参考PPT链接在这里:Lab 5.pptx 代码在这里mm2.cmm3.c版本一代码如下(无注释 注释请看版本二):/* * mm-naive.c - The fastest, least memory-efficient malloc package. * * In this naive approach, a block is allocated by simply in...原创 2021-01-19 15:00:31 · 505 阅读 · 0 评论 -
CSAPP Lab4: Performance Lab
本文为USTC SSE CSAPP 2020 Fall实验三的记录,仅供参考PPT链接在这里:Lab 4.pptx 代码在这里kernels.c原创 2020-12-30 22:44:56 · 1344 阅读 · 0 评论 -
CSAPP Lab3: Buffer Bomb
本文为USTC SSE CSAPP 2020 Fall实验三的记录,仅供参考PPT链接在这里:CSAPP Lab3:BufferBomb原创 2020-12-26 22:57:12 · 769 阅读 · 3 评论 -
CSAPP Lab2:Binary Bomb
本文为USTC SSE CSAPP 2020 Fall实验二的记录,仅供参考,最后是第6题暴力破解的源代码下面是第6题暴力破解的源代码:import osimport itertoolsimport subprocessr = [1, 2, 3, 4, 5, 6]rr = list(itertools.permutations(r))print("len:", len(rr))an.原创 2020-12-23 09:04:23 · 505 阅读 · 0 评论 -
CSAPP LAB1: Data Lab
本文为USTC SSE CSAPP 2020 Fall的实验报告,lab1已做完,但没有进行后续的优化,运算符数量不是最优,仅供参考,源代码在最后最后附上所有代码:/* * CS:APP Data Lab * * <Please put your name and userid here> * 刘辉 SA20225302 * bits.c - Source file with your solutions to t原创 2020-12-23 08:58:19 · 647 阅读 · 0 评论 -
C++ const 总结
C++const 允许指定一个语义约束,编译器会强制实施这个约束,允许程序员告诉编译器某值是保持不变的。如果在编程中确实有某个值保持不变,就应该明确使用const,可以减少奇怪的BUG。1. 修饰普通成员变量对于指针和引用类型,const一般分为顶层const和底层const。顶层const就是表示自己本身是常量,不能改变。底层const就是表示自己所引用的或指向的是常量,不能改变自己指...原创 2019-05-25 16:38:39 · 205 阅读 · 0 评论 -
操作系统的进程调度方法
二. 彩票调度(lottery scheduling)原创 2019-04-08 10:17:27 · 386 阅读 · 0 评论 -
操作系统中的进程
1. Process and Program By loading the code and static data into memory, by creating and initializing a stack, and by doing other work as related to I/O se...转载 2019-03-27 15:25:57 · 397 阅读 · 0 评论 -
链路层
以太网帧格式:关于VLAN可以看这个 :https://blog.51cto.com/6930123/2115373这篇文章讲的相当详细原创 2019-03-22 12:40:20 · 155 阅读 · 0 评论 -
字符编码:从 ASCII 到 utf-8
字符编码&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;作为一个程序员, 以前对字符编码这块不太了解, 身边出现过很多次乱码和字符类型警告的情况,而自己却不知道问题的根本原因,更不知道如何解决。所以通过一段时间的学习,也算懂了一点。把它总结出来,就是现在的这篇文章。在讲这个之前,简单的介绍一些计算机编码的知识。1. 计算机编码&amp;nbsp; &amp;nbsp;原创 2019-02-21 15:07:23 · 698 阅读 · 0 评论
分享