Category "operating-system"

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

Path.equals behaves different on Windows and Linux

I use the following code to compare two Paths in Java: import java.nio.file.Paths; public class PathTest { public static void main(String args[]) { St

qemu-system-i386: Error loading uncompressed kernel without PVH ELF Note

Im trying to boot my OS to qemu with this code: qemu-system-i386 -kernel MyOS/mykernel.elf But I keep getting this error: qemu-system-i386: Error loading uncom

How to suppress TASKILL output in python os module

I am trying to create a close button for my tkinter application without using the sys module. I implemented this: os.system("TASKKILL /F /IM main.exe") and con

XINU - How can I take control over an interrupt vector

Well, I've met this question a lot in OS, we've implemented this by diff. ways (Inline Assembly with setvect, getvect, etc..) At XINU it's a little bit differe

How to distinguish between different operating system distros in node.js?

In node you have access to process.os() and process.platform, which give you one of 5 values: 'darwin' 'freebsd' 'linux' 'sunos' 'win32' But how do you print

Process starvation test case on XINU

I am trying to produce a test case for demonstrating starvation by xinu's default scheduling policy.: if 2 processes are ready for execution, the one with highe

check if file exists (case-sensitive)

Is there a way to check whether a file exists in NodeJS, with case-sensitivity, even when the underlying file system isn't case sensitive? fs.exists() may or m

Is it possible to create an operating system using Python? [closed]

Is it possible to make a minimalistic operating system using Python? I really don't want to get into low-level code like assembly, so I want t