I know pretty well what happens when it is ruing and when is blocked, but the behaviour when the process is in the ready queue is something unknown for me. Thank you for the time....
ادامه مطلبI mean the kind of data structures/tables will be created which can be interpreted by bios to locate the keel and give it control. What is the role of file system in booting os? What is the sequence of booting from bios to loading os from filesystem? Let's block ads! بخوانید...
ادامه مطلبI would have hoped for an error message but since it freezes, it apparently mounts it as requested, making the whole system lose reference to its resource mounts (/proc and /sys), its library references, any other mounts, and possibly other stuff. Let this be a lesson as one of many things that you should never run. At least it gets solved by a reboot. Let's block ads! بخوانید...
ادامه مطلبAlthough from a technical point of view, people would say you caot see the difference, I have found this to be incorrect if you use Youtube as example. You can indeed see the difference, but its very hard. A 720p quality is already good, but because of the scaling down from 1080p to 720p on the fly, it is possible to see a quality increase. This is mainly due to how movies are compressed at youtube. Youtube's attempt to trim video's from 1080p to 720p remove certain details that your monitor doesn't. This is solely a compression thingy though, but it can be seen. Even better way to see the difference is to play a QuadHD: 4096p video on a 1080p screen and compare it to the 1080p equivalent. I...
ادامه مطلبSo I recently figured out that there's a HLT opcode for halting the CPU. Cool, let's see what happens! user@box:~$ cat > test.c int main(void) { __asm__("HLT"); retu 0; } user@box:~$ gcc -o test test.c user@box:~$ ./test Segmentation fault (core dumped) user@box:~$ Duh! How boring. Tus out HLT is a privileged instruction, so let's try something else. user@box:~$ mkdir test; cd test user@box:~/test$ cat > test.c #include #include #include int init_module(void) { __asm__("hlt"); retu 0; } void cleanup_module(void) { } user@box:~/test$ echo obj-m += test.o > Makefile user@box:~/test$ make -C /lib/modules/$(uname -r)/build modules M=$(pwd) [...] user@box:~/test$ sudo insmod test.ko user@box:~/te...
ادامه مطلب