首先,这一函数获取了esp寄存器的值,这一寄存器是指向栈顶的寄存器,为了获取指向页首的指针,我们知道Pintos中一页的大小是2的12次方,因此其做法就是将1这个数字在二进制下左移12位并取反后,再与esp寄存器中的值相与,即可获得页首指针。 (2)原子化操作 所谓原子化操作即为开篇所提到的关中断和开中断操作,其分别...
*/ int thread_get_nice (void) { /* Solution Code */ return thread_current()->nice; } /* Returns 100 times the system load average. */ int thread_get_load_avg (void) { /* Solution Code */ return FP_ROUND (FP_MULT_MIX (load_avg, 100)); } /* Returns 100 times the current...
首先,这一函数获取了esp寄存器的值,这一寄存器是指向栈顶的寄存器,为了获取指向页首的指针,我们知道Pintos中一页的大小是2的12次方,因此其做法就是将1这个数字在二进制下左移12位并取反后,再与esp寄存器中的值相与,即可获得页首指针。 (2)原子化操作 所谓原子化操作即为开篇所提到的关中断和开中断操作,其分别...
My solution of Pintos project 1. Contribute to microdog/pintos-project-1 development by creating an account on GitHub.
Result Project 1: 26/26 Passed. Project 2: 73/76 Passed. Reference michel-liu.github.io Pintos Guide by Stanford @liziwl/operating_system_project2 Finished 2020.1.2, ECNU.About Solution for the Pintos project (Operating System course lab), with detailed reports in Chinese. Resources Readme...
**前言:**本篇意在记录本学期结束的操作系统课程设计pintos project1实验报告和实现过程。整个实验参考了多篇文章也查阅了一些代码,其中部分内容或与其他文章相同,还请见谅。同时,也为了测试CSDN的文章发布功能,为后续的在线文档撰写提供参考。 第一部分 项目概述 ...
My solution to PintOS Threads Project linux scheduling qemu threads operating-systems pintos pintos-threads Updated Jun 16, 2018 C salamentic / pintos-project-1 Star 1 Code Issues Pull requests This part of the Pintos Project involved implementing the processes required for enabling threading in an...
Craftsmanship Made Architecture: The Chaki Wasi Project by La Cabina de la Curiosidad October 11, 2024 Chaki Wasi, Artisanal Center of the Shalalá Community / La Cabina de la Curiosidad. Image © JAG Studio Marie CombetteandDaniel Moreno FloresfoundedLa Cabina de la Curiosidadin 2019, a studio...
PintosProject3 virtual memory Pintos Project 3: Virtual Memory (1)Jung-Sang Ahn Min-Sub Lee Juyoung Lee Division of Computer Science, KAIST
Pintosproject1 Threads