Skip to content
Advertisement

Tag: operating-system

Failed to update “Operating System Updates”

Running Pop!_OS 21.04 and trying to update to the latest version when I get this error. This may have been caused by external or manually compiled software. The following packages have unmet dependencies: libnode72: Conflicts: nodejs-legacy nodejs: Conflicts: nodejs-doc Conflicts: npm Any quick fixes I’m able to do? Answer Uninstall nodejs and npm, try agian and install it again. You

fork() giving wrong output in linux (reverse output)

I have written code in C as follows Output as shown in ubuntu 20 OS I am expecting that child process should be written first as after fork() is called child process’s printf() will be printed on screen and after that parent’s printf() will be printed but reverse is printed actually. Please help me why child process’s printf() is not

How does OS kernel get notified when memory is accessed?

As far as I know, OS kernel maintains the translation from virtual address to physical address, and the userspace program uses virtual address, the CPU uses physical address. Since all machine codes are executed by CPU, how does OS kernel know a memory access instruction is taken, and translate the virtual address to physical address? CPU can execute a syscall

Why do system calls use a different stack?

Here is a question about the details happening during system call. However, one thing surprises me that the TSS maintains different stacks for different priviliges. That is, codes running in user mode and system mode are using different stack context. Since system call is actually a function call, why couldn’t we just reuse the user stack and just create a

Fork how many processes created confused

Say i have the following program So now what we have: Fork #1 creates an additional processes. so now we have two processes. Fork #2 is executed by two processes, creating two processes, for a total of four. My confusion is after the first fork we will have two processes P1(parent) and C1 (child). each process will execute the second

Is time-slicing synchronous or asynchronous and why?

The interruptions that occur as a result of the computer’s chronometer indicating a termination of the time interval assigned to a process (time slice), are they classified as synchronous or asynchronous interruptions? Answer Time interrupts, as hardware interrupts are considered as all hardware interrupts as asynchronous. Despite the fact that this can lead to confusion, let me explain: Synchronous interrupts

Advertisement