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.

operating-system
4,132 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

How can I enable my app to access a specific partition directory for reading and writing without showing popup to user?

I am currently developing an app for the Android Automotive OS, named com.oem.myapp, which is designed to store data in a specific partition (/data/vendor/LargeData). The app is targeted at Android ...
falev's user avatar
  • 3
0 votes
0 answers
16 views

Exception of type 'System.Exception' was thrown. Error in Cosmos Project

I am trying to work on Operating System in C# through Cosmos. I am using Visual Studio 2022. The problem is every time I press create project button after selecting the COSMOS Kernal project template ...
Shah Sarmad's user avatar
0 votes
0 answers
49 views

Maximum CPU Voltage reading

I am writing an UEFI driver and I need to read VCore and the maximum CPU Operating voltage programmatically. Intel specifications say that the maximum operating voltage for my CPU is 1.72 Volts, but I ...
Sergei Bykovskiy's user avatar
0 votes
1 answer
32 views

TypeError: str expected, not NoneType - Docker run problem with .env file in python

I have a python RAG script that works fine locally (Windows). My understanding is that the problem is related to the .env file when it is called in basic_rag.py os.environ['OPENAI_API_KEY'] = os....
Diego's user avatar
  • 659
0 votes
0 answers
13 views

Phoenix Operating System - kernel system call for longest descendant with no children

Can you please help me develop a syscall for kernel to return the pid of the process that has the longest descendants path leading to a process that has no children? I am supposed to return the length ...
Kinga Hernet's user avatar
0 votes
0 answers
28 views

mkcert: Your connection is not private

Hello everyone I am use vite with vite-plugin-mkcert, i run this commands: mkcert -install mkcert localhost npm run dev and on site i get this: my vite config is: import {defineConfig} from'vite' ...
Pavel Perevezencev's user avatar
0 votes
1 answer
23 views

QEMU i386 pmio addresses

I'm starting developing a toy kernel for i386, and I'm finding it hard to locate the ISA addresses of the PMIO registers. For example, I've been looking at the Intel 8259 PIC (Programmable Interrupt ...
Yijue Xu's user avatar
0 votes
0 answers
29 views

x86 Updating GDT in Long Mode

Once in long mode, is there a straightforward way of loading a new GDT without immediately causing a general protection fault? The issue is that as soon as the new GDT is loaded with lgdt, it seems ...
runasi's user avatar
  • 21
0 votes
0 answers
7 views

Pull OS information from Sentinel Syslog

Can someone help me to create K-Query to pull OS information Windows, Mac etc from Sentinel Syslog? Pull OS type report from Syslog in specific time frame. I'm new to K-Query and still trying to ...
Saman Kaluarach's user avatar
0 votes
1 answer
21 views

How to get back to the terminal prompt?

After certain operations using vite : like after running the npm run dev command , in my terminal , I am not able to see my terminal prompt. How should I return back to it ? I tried ctrl + q , ctrl + ...
Jeremiah Ranen R's user avatar
0 votes
0 answers
27 views

How to set breakpoints in Visual Studio Code for debugging kernel code running in QEMU?

I am currently working on modifying an operating system kernel codebase and using Visual Studio Code as my primary IDE. I have successfully configured my environment to compile the kernel code and ...
mozhongzhou's user avatar
0 votes
0 answers
24 views

Installing python 3.9 in node 14

recently i am using node:14 docker image and i want to install python 3.9 on it I tried npm I python3 and python3 --version showed version 3.7, how should I install version 3.9?
lalala hey's user avatar
0 votes
0 answers
20 views

How to access a module inside of a module from a file inside the first module in python?

I have the following file format and I am getting a ModuleNotFoundError: No module named 'uploader' Video-Generator/ main.py AutoUploader/ __init__.py upload.py ...
Ziv's user avatar
  • 13
0 votes
0 answers
35 views

Print Inode or file data, using path name

currently the program taking only (./a.out /dev/sdb inode) i want to run like ./a.out /dev/sdb1 /test/t.c inode (format: ./a.out device-file-name path-on-partition inode/data) ./a.out /dev/sdc2 ...
Rowny Robert's user avatar
0 votes
0 answers
18 views

Make Pyinstaller pack up files into an exe

I'm trying to make a single executable file with a data file contained within it. I tried --add-data "filename.png;." and it seemed to be working, but then how do I access that file if it's ...
Andrew Howard's user avatar
0 votes
0 answers
26 views

Robot Framework, control it there is error in event viewer/application

When i test external Windows application with Robot Framework i would control if there is new error in event viewer/application. there is a way?
Noob_Testautomation's user avatar
0 votes
0 answers
43 views

Get OS Version using API in service-now

I'm able to get server CLASS i.e [windows, linux etc] using Service Now API call as shown below marked with GREEN arrow. I wish to retrive OS Version 7.9 as well from service now marked in RED arrow ...
Ashar's user avatar
  • 3,238
0 votes
0 answers
17 views

Robot Framework, control process in task manager

I have to control the process (in task manager) opened by an external application in windows. the only result I got was closing them with the pid: ${rc_code} ${output} Run And Return Rc And ...
Noob_Testautomation's user avatar
0 votes
0 answers
13 views

Which scheduling algorithm the OS uses in order to distinguish between CPU Bound process and I\O Bound process?

I'm learning about different topics of operating systems, currently about processes. In order to identify the type of process during its run, which one of the processor scheduling algorithms (short-...
Nuevo's user avatar
  • 13
0 votes
0 answers
42 views

Building with unstable options results in a lot of errors

I'm following this blog, and am running into an issue when running cargo bootimage and cargo run. Here are a few of the errors (there are too many for me to post all of them): error: requires `sized` ...
Bismuth83's user avatar
0 votes
0 answers
44 views

Is there a way to force close Steam on Steam Deck from an app that runs on Proton?

I'm working on an installer for a mod that requires adding a launch option to a game on Steam (a dll override of dinput8). However the only way I found to programatically add this launch option is by ...
Fei T's user avatar
  • 33
0 votes
0 answers
235 views

python: Cannot save file into a non-existent directory - ongoing issue with pandas "to_csv"

I have been banging my head against the wall and neither I or chatgpt can figure out why my file won't save. import pygbif import os import numpy as np import pandas as pd my_dir = "C:/myfiles/...
noodle222's user avatar
0 votes
0 answers
21 views

Spinlock for a two thread enviroment

I am trying to implement an optimized spinlock for a two-thread environment, where one thread is very likely to run, and the second thread is unlikely to run. My thoughts: #define LOCK(lock) while (...
firev2's user avatar
  • 145
0 votes
0 answers
42 views

Error message on shutdown - from unshown winform

My Winforms Application (consisting of multiple forms), throws an unexpected error during shutdown. The error is from a form that is not shown to the user (frm.show is not done) at any point of time. ...
IT Researcher143's user avatar
0 votes
1 answer
38 views

How to estimate the approximate total memory usage when loading a large data into Python

I'm trying to model the memory usage of LLAMA2 model. I tried to load the model data 12.55GB in Python and did a memory profiling using process.memory_info().rss. But it turned out it's using ~13.4GB ...
user23537554's user avatar
0 votes
1 answer
30 views

explanations regarding reading files from os by python

i am reading files inside a folder by using this : files = [f for f in os.listdir(folder_path) if os.path.isfile(os.path.join(folder_path, f))] it returns a collection of file names in string format ...
Irfan __s's user avatar
0 votes
0 answers
36 views

How can we redirect system calls between OSes?

I am trying to transfer the computational load of a single process between multiple PCs, instruction wise. I want to intercept system calls and divert between multiple PCs to reduce computational time....
nullvoid's user avatar
0 votes
1 answer
54 views

What if we keep calling semGive multiple times without semTake in binary semaphore? What will be the behavior?

We have created a binary semaphore with semBcreate. Code fragments: semTake(with 10s wait); // it will be called only once during restart semGive(); //this will be called from multiple ...
Niranjan Kumar's user avatar
0 votes
0 answers
24 views

Converting virtual address to real address - in hexadecimal

question for converting virtual address to real address I looked through stack overflow for similar questions but I unfortunately did not know how to apply the same steps to this question, therefor I ...
ocrasoup's user avatar
0 votes
0 answers
71 views

Adding System Apps to an Android Operating System

I'm working on a fork of Graphene OS and I'm new in android development too. How would it be possible adding a new System app into the build? E.g. Briar, that is an external App? Or generally how it ...
Bigredmachine's user avatar
0 votes
0 answers
14 views

Can we access Computer management through Windows Recovery Environment's cmd?

I got into a situation where I couldn't change myself back into admin after I had switched my account type to user. Administrator account was also disabled. I have already tried compmgmt.msc in ...
Droopy's user avatar
  • 1
0 votes
0 answers
18 views

Report of memory used doesn't add up. Is Windows lying?

While running a very intensive script in cmd, I looked at the memory used in Task Manager, and something struck me as curious: screenshot of task manager (collage of the entire column if you're ...
SuperDialga's user avatar
0 votes
0 answers
29 views

Directory issue: Module not Found

I'm trying to import two modules in a main.py file. The file structure is like this |Common-Folder | | |__Folder | |___main.py | | |__Tools(folder) | |___models | |___maze inside main, I do import ...
JadeHippo's user avatar
0 votes
0 answers
28 views

suppose a program is running on 5 threads.If an extra thread is added,what factors should be considered?

Add up question: Will the efficiency of the system increases if i add an extra thread?if yes/no,why? This question is asked in qualcomm interview. It is related to thread management topic in Operating ...
Gangadhar Sai's user avatar
0 votes
0 answers
25 views

How to Send Serial Communication Data from Android Device to Linux Machine via USB Cable?

I'm looking for guidance on establishing serial communication between an Android device and a Linux machine via a USB cable. Specifically, I want to send data from a web app running on an Android ...
Muzammal Abdul Ghafoor's user avatar
0 votes
0 answers
21 views

Apache Kafka - migrating physical broker nodes to RHEL OS

I am working on a problem to migrate the physical hosts on which Apache Kafka cluster is running -from CentOSv7 to RHEL v9 . Each node has one disk for the OS and 1 or more data disks (different ...
Dheeraj Bansal's user avatar
0 votes
0 answers
12 views

Unique identifier for Windows OS Machine. (something like MAC address or Physical Address )

I am creating a windows software with licensed version. There is a scneraio where once this license applied to windows-machine-1 it should be rejected if same license is applied in another machine. I ...
Jayashree Madanala's user avatar
0 votes
0 answers
19 views

TLS1.3 Browser compatibility on older windows versions like 7 or 8

How browsers like chrome and edge are establishing tls1.3 connection on windows8 but Windows8 lacks the security patches and updates required for secure TLS 1.3. Which cryptographic libraries they ...
Kanak Jaiswal's user avatar
0 votes
1 answer
25 views

python os.makedirs not working with fastapi app

I'm having a problem where in my fastapi app, when I run os.makdirs(dir, exist_ok=True) no dirs get created. When I run just this command alone in a new file, it works, but in my fastapi app, it doesn'...
NFeruch - FreePalestine's user avatar
0 votes
0 answers
107 views

Gradio: How to retrieve uploaded file?

when I upload a file using the upload_button in Gradio, the file is stored in a Temp file in a known location but the file name changes because there is a random suffix addition when it is saved. ie.: ...
Diego's user avatar
  • 659
0 votes
1 answer
24 views

Is it legal to copy APIs and concepts of proprietary operating systems?

Let's say I found publicly available documentation (not source code) for a proprietary operating system (for example, VxWorks). And let’s say I wrote my own operating system kernel, which would ...
VadimP22's user avatar
  • 335
0 votes
0 answers
79 views

Problem deleting files in python starting with digits

I'm trying to delete files using python. I tried deleting using os library and shutil but in both ways the file was not found even though the path was correct. The file name begins with digits and ...
Yoav_kn's user avatar
0 votes
1 answer
171 views

What is the difference between a semaphore and an atomic int?

I mean not from the point of view of there interfaces in C++, but from OS side, what real difference between these concepts. Tried to google it, but on different resources i just found only very ...
Dzmitry Kulik's user avatar
0 votes
1 answer
36 views

how do i fix this error when checking os in makefile?

i was trying to add a .exe extention to my code if the os was windows. makefile code: check_os: ifeq ($(OS),Windows_NT) g++ hello.cpp -o hello.exe else g++ hello.cpp -o hello ...
maghje13's user avatar
0 votes
1 answer
120 views

How to implement syscall in XV6

I have this assignment: Implement a syscall that returns information about the current process (e.g. its process ID and state). Think about who is responsible for allocating the memory that contains ...
Sondre's user avatar
  • 1
0 votes
0 answers
15 views

How would can I add a serial port (virtual) to AQEMU

I am using the AQEMU gui for the first time, and tried to run a mikeos instance/vm. However, Mikeos requires a serial port for many applications I tried to add one, but in the selector COM was not an ...
Colpr's user avatar
  • 1
0 votes
0 answers
16 views

Set folder based on folder index

I am trying to create an os path based on the partial folder name. the folder structure looks like this: January February March etc i've set up the folder_path to the parent directory, and are ...
ChrisLK's user avatar
0 votes
0 answers
33 views

How to test the run time performance of a code with specified computing power

How can I ensure a fair comparison of algorithm performance, particularly in terms of runtime, for my academic research? I aim to conduct tests on several algorithms, and to maintain consistency, I ...
Cyril Lustan's user avatar
0 votes
0 answers
54 views

Moving Files to a different directory using OS python module

I was doing a project about directory and file manipulation with os module, in the os module. Do I have to specify th file`s path in os.rename() function in order to move him to a different directory?...
Arthur Barbosa's user avatar
0 votes
0 answers
24 views

Unable to read image text with python tesseract and OpenCV help me

enter image description hereimport pytesseract from PIL import Image, ImageEnhance, ImageFilter Function to enhance image def enhance_img(filename): # Open the image im = Image.open(filename) # ...
pravin Landge's user avatar

1
24 25
26
27 28
83