Questions tagged [operating-system]

An operating System (OS) is a software program whose role is to be an abstract layer between software requisitions for resources and the hardware available, manage input/output, memory allocation/deallocation, file systems, among other basic tasks a device (not necessarily a computer) should do.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

ls cannot show some files in ARM [closed]

I have a wav file named office_speaker13_point08.wav. I run the following command, why the second ls cannot get the "office_speaker13_point08.wav" ? I wonder why the second command cannot ...
Ryuk's user avatar
  • 19
0 votes
0 answers
32 views

About Mechanism of Memory Release in Boehm GC

I am studying the workings of Boehm GC (Garbage Collector). One aspect I am trying to understand is the specific operations that occur on the computer when Boehm GC releases memory. How does the C ...
Taiga Imai's user avatar
1 vote
1 answer
91 views

How does a computer perform any instruction without making a system call

I am learning about Operating Systems and trying to get a deep understanding about the fundamentals about how a program works. I have a simple C++ program When I look at the basic architecture of ...
theMyth's user avatar
  • 141
0 votes
0 answers
12 views

Locally opening external apps inside my own window

I was thinking of a bigger project, which would require to open external desktop apps from inside my app. Now, I know how to open these, so that my app just opens the app window of another app, ...
noah_ks's user avatar
0 votes
1 answer
33 views

How does Node.js effectively manage the event loop and task association for incoming requests?

I have a question regarding operating system with server node When the request is sent to our HTTP server First question: Is this request for a new connection or a new process or a new thread? Second ...
reza salari's user avatar
-3 votes
0 answers
45 views

Implementing 3 multi-priority ready queues for CPU thread

Addition of multi-priority queues, RQ0, RQ1, and RQ2, for each consumer or CPU thread • Differentiating three different types of processes: SCHED_FIFO, SCHED_RR, and SCHED_NORMAL • Addition of lock/...
Jason Renault's user avatar
0 votes
0 answers
20 views

how to open a file in windows, from Pharo environment?

I'm building something in Smalltalk pharo and I need to open files in the underlying OS (Windows 10). Specifically, I need to open certain types of files with the registered Windows app (.pdf, .wav, ...
Rui VP's user avatar
  • 13
0 votes
0 answers
11 views

stack memory management during recursion calls

The operating system usually allocates a specific size to the stack before the execution of the program. Let's say the program has a recursive call having a boundary condition. Even though it does ...
Sleepy Tinker's user avatar
0 votes
0 answers
30 views

Why does this ASM function call refrence a memory location just one byte ahead? [duplicate]

I am trying to compile Go for an operating system (without any standard go libraries whatsoever), and I wrote this go program: (ignore the fact that I'm using Go, yes, I know it will be painful) ...
Priff13's user avatar
  • 29
-1 votes
1 answer
42 views

Installing OpenSSH On MINIX 3.2.1 (Virtual Machine) [closed]

I'm currently working on a project for my Operating Systems course I need to access minix 3.2.1 files easily using openssh when I try to link openssh with minix os it gives me this message Any idea ...
Ahmed El-Baramony's user avatar
-1 votes
0 answers
24 views

Ubuntu -bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory

I am just mess up my python setting on ubuntu. I first install python3.9 do sudo ln -sf /usr/bin/python3.9 /usr/bin/python3 and sudo ln -sf /usr/bin/pip3.5 /usr/bin/pip3, then I realize I can not open ...
Xiao's user avatar
  • 1
0 votes
0 answers
14 views

Only one or two processes running in multiprocessing

I was trying to use multiprocessing to go through layers of directories and grab the key value from the dictionary in the last directory. The problem is I only see one or two processes running every ...
dallaslona's user avatar
0 votes
0 answers
12 views

mobile app work with mobile function to use mobile hardware

mobile power off/on - flight (airplane) mode - usb - formating and reset - clock - date - timer - alarm - flash light - ringtone - notifications - keyboard - screen - headphone in/output- create/...
CofeKeys's user avatar
0 votes
1 answer
25 views

File Descriptor In Linux

How file descriptors in Linux System are actually applied to perform read and write operations does the I/O Module uses file descriptor information to write or read data to the appropriate file
Apabila X Terkadang's user avatar
0 votes
1 answer
21 views

Worker function of the thread is not taking value 0 as arg and pthread_join is giving me segmentation fault

I am trying to do matrix multiplication by creating the threads equal to no. of rows equal to no. of threads. The worker function is taking the index of first loop as argument but for 0 index function ...
Skyler Quinn's user avatar
0 votes
0 answers
28 views

Writing interrupt-driven I/O in C on COM1, output interrupts are triggering just fine but keyboard input never triggers an interrupt. Why?

I'm working with simple operating system concepts, and currently working on writing a simple interrupt-driven serial driver in C. I have serial writing down, triggering interrupts when it's supposed ...
mlb0066's user avatar
  • 11
-1 votes
0 answers
25 views

Problems when relocating certain symbols of dynamic ELF file

I have created an ELF loader that maps all of the LOAD segments into memory, then maps the interpreter specified in the INTERP program header, and calls it. It works fine but now I am trying instead ...
Idan Rosenzweig's user avatar
2 votes
0 answers
40 views

PS/2 Mouse Interrupts not triggering

I have a problem and i just cant seem to fix it. I created my IDT, remapped my PIC and got keyboard input to work. Now I wanted to add mouse input, but it just doesnt work. #define PS2_DATAPORT 0x60 #...
Endrix's user avatar
  • 31
0 votes
0 answers
8 views

UACbypass running command as Administrator and get output in Python

Is there any way to use uacbypass and run the command as Administrator also get the output in Python? Just run the command as Administrator without uac screen and get the output What I expect: run(CMD)...
vIIr's user avatar
  • 11
-3 votes
0 answers
25 views

I have some difficulties solving this problem [closed]

In a 64-bit computer system that uses pure paging with 16KB page size, if each page table entry is 4 bytes long then: i. What is the maximum size of a page table? ii. What is the maximum size of user-...
christa's user avatar
-3 votes
0 answers
55 views

How can I fix this dpkg error? 'duplicate file trigger interest' [closed]

Error: dpkg: error: duplicate file trigger interest for filename '/usr/share/glib-2.0/schemas' and package 'libglib2.0-0:i386' E: Sub-process /usr/bin/dpkg returned an error code (2) I am trying to ...
Tarikul islam tarik's user avatar
0 votes
0 answers
15 views

Efforts and path to make distributed hardware resources based virtual emulated Linux machine?

I am thinking of an idea about a big and very powerful emulated Linux based machine maybe something computer-net that have distributed resources around the world like RAM, Permanent Storage, ...
Komal Singh's user avatar
-1 votes
0 answers
27 views

About the Nachos , a operation system used in teaching [closed]

I can't find more about this operation in chinese community, but one of my duty is to expand this system.I dont know how to start Can I get some guidence which tell me where can I get a detail ...
ViceMusic's user avatar
-1 votes
0 answers
38 views

I just switched from windows to mac and it's a bit hassel for me to install git bash in mac os [closed]

"I download a binary installer package and executed it, and then I change my terminal from zsh to bash. however,when i tried to run git command i received an error messege stating that Bad cpu ...
Anvesh Dhakad's user avatar
-1 votes
0 answers
19 views

How to create a hotkey using python irrespective of the operating system

I want to create a hotkey using python irrespective of the operating system. another way to create a hotkey by any means irrespective of the OS is appreciated I tried adding a hotkey using keyboard ...
Vedant Arora's user avatar
-2 votes
0 answers
24 views

Can anyone tell me step by step procedure to solve this problem of CPU Scheduling (SRTF). I am little confused

Consider the set of 4 processes whose arrival time and burst time are given below- Here is the image If the CPU scheduling policy is Shortest Remaining Time First, calculate the average waiting time ...
Princex_17's user avatar
-1 votes
0 answers
27 views

Is there a way to get information(for instance CPU time) programmatically of root processes on macOS?

I need to gather information about running user and system processes. I'm using macOS and I am currently unable to get information about root processes. I have tried using proc_pidinfo from <...
Jh22's user avatar
  • 1
0 votes
0 answers
8 views

Using reprepro to build raspberry pi OS image

We are building customized Raspberry Pi Compute Module 4 OS using pi-gen. pi-gen always pulls the latest packages from raspbian.raspberrypi.com repository each time it is executed. As we near ...
n8zrj's user avatar
  • 1
2 votes
1 answer
83 views

Non-trivial designated initializers

I am currently working on an OS and working on the utils section. Specifically, on the tmp dir. I have came up with this code, #include <stdint.h> #define HIGH_KERNEL 0xc0000000 #define ...
pqccpq's user avatar
  • 23
0 votes
0 answers
18 views

accessing an executable in a path using windows OS to use SCIP solver?

I am solving an optimization problem and I have the executable file of the SCIP solver in which I want to use. It is located in my windows local computer, but I want to use it to solve a problem where ...
Alexandre César Barbosa's user avatar
0 votes
0 answers
8 views

Dual-Boot Android Tiramisu?

So I know this might be a bit of a long shot but, would it theoretically be possible to dual-boot Android Tiramisu with Windows 11? My computer isn't able to handle Android Studio emulation past about ...
Shozikan's user avatar
-3 votes
3 answers
52 views

OS Linux in windows [closed]

I want to learn to use the Linux system, and I own a Windows machine. When I searched for a way to install Linux on Windows, I found two methods. The first is to download the Linux system through ...
Chadow_zero's user avatar
-1 votes
1 answer
35 views

How to change streamlit process name in ubuntu 22.04

There are two streamlits apps are running in my server, when the apps are deployed in Ubuntu VM server, we execute the following command $ nohup streamlit run dashboard1.py >data.out 2>&1 &...
anthoniraj's user avatar
1 vote
1 answer
32 views

How does the CPU/Kernel allow user-space code to run when it's overwhelmed by Hardware Interrupts?

I have learned that when a Hardware Interrupt occurs, the CPU saves its registers to memory and immediately runs the corresponding code from an Interrupt Vector Table. Given that these HIs occur for ...
Eric B's user avatar
  • 171
1 vote
1 answer
42 views

How to portably exit the current Lisp process with a given error code in Common Lisp?

I want to call a function that would end the current Lisp process with a specific exit code. In python, I would write this: os.exit(15) How would I do this portably in Common Lisp? ("bordeaux-...
djhaskin987's user avatar
  • 9,811
0 votes
1 answer
36 views

How to fix producer-consumer program so that both threads terminate when counter reaches 10?

I am trying to write a small program in C that implements the producer-consumer approach for two threads. I intend for it to share one mutex and two condition variables to make a counting variable ...
Anthony Silva's user avatar
1 vote
3 answers
97 views

Global variable needs to be passed as a parameter

I have a function that is copying the contents of the envp array that contains the global variables. The function is successful in copying the contents, however, when it returns, it seems like the ...
estevao's user avatar
  • 35
0 votes
0 answers
39 views

RPI4B bare metal RNG

I am working on a bare metal operating system for the Raspberry Pi 4B, and have run into a bit of an issue. I need a random 64bit number to use as a guard value for the stack smashing protector. I ...
StckSmsh's user avatar
0 votes
0 answers
22 views

write() syscall on LUKS partition

To my understanding, when the write() syscall is called, it writes the data to the OS buffer then returns. My question, on LUKS partitions, are: Does write() encrypt data then write to OS buffer then ...
Lân's user avatar
  • 1
0 votes
0 answers
41 views

Why do I not have a "HOME" environment variable in python?

I'm currently learning my supervisors code for a project I'm doing and he is trying to access the environment variable "HOME" using os.getenv('HOME') in an imported script. This, however, ...
Nicojwn's user avatar
  • 39
0 votes
0 answers
13 views

Process Synchronization and Atomic Instructions

According to the book " Operating Systems Concepts ", ninth edition , page 210, we have the following statement : Many modern computer systems therefore provide special hardware ...
AAA's user avatar
  • 315
0 votes
0 answers
29 views

Question about memory management/free lists using Red-Black trees and Doubly linked list to achieve constant time memory coalescence

Preface: I'm trying to understand data structures and algorithms as they pertain to memory allocation strategies. In this context, there is a large fixed-size pool of memory, from which blocks will be ...
Sandman's user avatar
0 votes
2 answers
67 views

OS memory allocation

How does OS allocate memory to processes? I mean for example in unix familly does OS use malloc function for this allocation? Does memory schaduler use malloc func? What is the routine that do this ...
Reza Farshad's user avatar
0 votes
0 answers
63 views

NVIDIA GPU in VM VirtualBox how to make it work?

I need to setup server with GPU. I can't afford to rent a dedicated server so i decided to make it with VM on my desktop pc. But I encountered a problem: VirtualBox does not use my video card (NVIDIA ...
Yoneri's user avatar
  • 1
0 votes
0 answers
20 views

Race condition in file struct in xv6 OS

I'm doing MIT labs for RISK-V xv6 and was working with files in the kernel/file.c. I was wondering about how I should arrange spinlocks to safely concurrently modify file struct (see kernel/file.h for ...
kaladin's user avatar
1 vote
0 answers
19 views

How to decide minimum pmp region for an architecture?

In RISCV architecture, there are pmp registers that define and control the memory regions. It is stated in the spec "Although the PMP mechanism supports regions as small as four bytes, platforms ...
Ömer GÜZEL's user avatar
-1 votes
0 answers
32 views

qemu is giving me an error I don't understand

I was following along with a Youtube tutorial: https://www.youtube.com/watch?v=9t-SPC7Tczc&list=PLFjM7v6KGMpiH2G-kT781ByCNC_0pKpPN and when we got to first loading the software in qemu, I was ...
WizOS's user avatar
  • 1
-1 votes
0 answers
84 views

unable to load kernel in assembly

#include "../drivers/time.h" #include "../drivers/keyboard.h" #include "../drivers/display.h" void _GLOBAL_OFFSET_TABLE_() {} void main() { char* video_memory = (...
Johndev's user avatar
0 votes
0 answers
49 views

Implementing prime number generator using pipes

I am trying to implement a prime number generator using the sieve of Eratosthenes model shown in this link The idea is to create processes that pass a set of numbers and each process eliminates ...
user3280530's user avatar
0 votes
0 answers
62 views

Error while programming a custom system call in the Linux kernel version 6.2.1

While writing a custom system call, I encountered the following problem: error: 'struct thread_info' has no member named 'pcb' The problem occurs when the make command is executed to build the kernel. ...
IndianMax's user avatar

1
2 3 4 5
276