Category "operating-system"

How to use data files of sub-directories and perform iterative operation in python

I have my jupyter notebook (python script) in current directory. In current directory, I have two subfolders, namely a and b. In both directories a and b I have

How to update GDT entries after initial loading?

Once I initialize and load my GDT into the GDTR using lgdt, how can I update the GDT later? Am I correct if I use the sgdt command to get the base address and t

Creating a python script that returns the size of a new file

I'm trying to create_python_script function that creates a new python script in the current working directory, adds the line of comments to it declared by the '

Database-style migrations for OS files

I'll admit this is an odd question as I'm writing, but I'm curious if such a solution exists or not. Basically, I want to run database-style migrations on files

Understanding the `scheduler_tick()` function of Linux Kernel

To my knowledge, I understood that the scheduler_tick() function periodically gets called by the timer interrupt with the frequency of HZ. I'm new to kernel dev

what else we can use instead of import com.sun.management.OperatingSystemMXBean as this import is giving me Sonar issue

Due to project sec. issues . Not allowed to use com.sun.management.OperatingSystemMXBean . Instead i am trying to use java.lang.management.OperatingSystemMXBean

Making Consumer/Producer Problem a bit Advanced

Is there any way for the Consumer/Producer problem in synchronization could be made more advanced by introducing some scenario or making it a little bit more co

Setting environment variables on macOS Catalina

In which file should I set environment variables on macOS Catalina? I have already tried the .bash_profile file but it does't work.

How to deal with files with no extension in Python

I am currently writing a script for work, which goes through every file in a directory and its many sub directories and counts the amount of lines in each file.

What does this i386 os code mean? The code is for resetting the system

/* jump to reset vector. esp := 0 */ int main(int argc, char **argv) { PRINT("reset\n"); _eflags = 0; // interrupt disabled __asm__ __volatile__ ("\

Tree command not found

I tried using tree command to see the directory structure but it dint work on my mac terminal, it says : command not found. I tried to install the package for c

TFS 2010 Upgrade to TFS 2013 - Can Window Server 2019 Standard Support the Upgrade?

We are looking to carry out the following TFS upgrades in our Production environment: Upgrade TFS 2010 to TFS 2013.5 Upgrade TFS 2013.5 to TFS 2019 To support

FileNotFoundError: [Errno 2] No such file or directory: 'statistics.csv'

txt = open("statistics.csv") Keep getting this error, FileNotFoundError: [Errno 2] No such file or directory: 'statistics.csv', however the file is in the same

when i try to install android application, "app not installed" and stopped. how to fix it

When we try to install our android application, "app not installed" error came and stopped. how to fix this issue and we want to install our application and hav

EBADPLATFORM error when installing any npm package into a fresh Nextjs app

Working with a team on a new project -- we have a fresh Nextjs app stood up in our remote repo which another team member has cloned and is working on locally. S

How to create a system call for FreeBSD kernel

I want to add new syscall to freeBSD kernel and I want to change syscalls.master file in /usr/src/sys/kern/syscalls.master. But this file is not existing in th

Semaphore under uCOS-III

I use uCOS-III under Arm Cortex M4 and have the following problem: If OSSemPend() is executed twice within the same task), like timeout = 100; /* 0.1 s */ OSS

Does user level threads take advantage of multiprocessing?

Does user level threads take advantage of multiprocessing ? I read one such answer here. But, it's not clear though. What does it mean by "user threads cannot

Xinu - Setting new priority for a Suspended state process

I have created a process X in Xinu along with other two processes (y, z). The y and z are high priority than X, so they both are running as per scheduling polic

XINU OS - Understanding roundmb function

I am studying XINU OS, and came across this simple one-line function. Is it possible to explain how this function is working and rounding x to nearest block siz