operating-system Questions
11
I need to find the OS name and version on a Unix/Linux platform. For this I tried the following:
lsb_release utility
/etc/redhat-release or specific file
But it does not seem to be the best sol...
Supplejack asked 18/11, 2014 at 6:48
8
I am looking for the path the the JRE file on Mac OS X 10.6.8.
Or is there no such file?
Is JRE just slang for an idea or concept?
Java Runtime Environment is a real thing.
Does it have a file?
I ...
Hewie asked 19/1, 2013 at 2:38
2
Solved
I am aware of the difference between a process running in user mode and one running in kernel mode (based on access restrictions, access to hardware etc.). But just out of curiosity, what is the di...
Cephalic asked 1/3, 2010 at 5:57
3
Solved
Few days back, in an interview one question was asked to me as,
Are function callback in C and interprocess communication are same?
I was bit neutral in that question.Because I was in a dilemma....
Wiltshire asked 15/5, 2012 at 7:56
3
Solved
How can I check whether a memory address is writable or not at runtime?
For example, I want to implement is_writable_address in following code. Is it possible?
#include <stdio.h>
int is_wr...
Henriquez asked 21/1, 2013 at 6:35
7
Solved
I'm surprised to find very little info on this topic. I want to detect if a user is running Android. I'm using:
platform.dist()
This perfectly detects all all OSs and different Linux distros. Ho...
Chansoo asked 29/12, 2017 at 7:25
6
Solved
If I store the path that i want to open in a string called finalpath which looks something like this:
"./2.8 Movies/English/Die Hard Series"
then how do i open this in Windows Explorer?(Windows 10...
Luminiferous asked 14/12, 2017 at 11:35
28
Solved
What do I need to look at to see whether I'm on Windows or Unix, etc.?
Ribose asked 5/8, 2008 at 3:23
4
Solved
I have learned that in an operating system (Linux), the memory management unit (MMU) can translate a virtual address (VA) to a physical address (PA) via the page table data structure. It seems that...
Dinka asked 3/3, 2014 at 2:14
10
Solved
Here's what I'm currently using, which I think gets the job done, but there's got to be a better way:
func isWindows() bool {
return os.PathSeparator == '\\' && os.PathListSeparator == ';...
Hatred asked 7/11, 2013 at 22:2
3
Solved
In java, when we create a file, we create files using the name of the extension.
For example :
File file = new File("D:/light.txt");
I would like to know what type of file format do we get when ...
Wittie asked 10/5, 2016 at 5:44
3
Solved
I have read Intel 64 and IA-32 Architectures SDM vol 3A, 9.2 MEMORY ORDERING, but there was one question that kept bothering me.
If I first write to a memory address, then send an interprocessor in...
Nalor asked 28/5, 2023 at 18:8
13
Solved
I am looking for an elegant way to get the OS version like: "Windows XP Professional Service Pack 1" or "Windows Server 2008 Standard Edition" etc.
Is there an elegant way of doing that?
I am a...
Frustrated asked 23/2, 2009 at 13:33
36
I am using Service Class on the Android O OS.
I plan to use the Service in the background.
The Android documentation states that
If your app targets API level 26 or higher, the system impos...
Chinquapin asked 8/6, 2017 at 2:15
6
Solved
I want to check the operating system (on the computer where the script runs).
I know I can use os.system('uname -o') in Linux, but it gives me a message in the console, and I want to write to a va...
Nosewheel asked 21/11, 2011 at 23:40
7
Solved
I want to make a batch file which will do the following operation: checks if the running OS is windows. If it is than it should print Hello. Im win 10 else should print other message. How can i do ...
Affenpinscher asked 16/12, 2015 at 17:0
3
Solved
I've just upgraded to Ubuntu 20.04. I was working with a python 3.7 project using Django inside a virtual environment, so I was confident even with the upgraded distro (which involved the installat...
Carthage asked 1/5, 2020 at 11:7
18
Solved
I need my code to do different things based on the operating system on which it gets compiled. I'm looking for something like this:
#ifdef OSisWindows
// do Windows-specific stuff
#else
// do Unix...
Matchbook asked 26/9, 2008 at 23:44
4
Solved
I would like to install Flutter on my Apple M1 machine using Homebrew. But I am a bit hesitant because I am not sure if this will provide any benefits or it will create more trouble (e.g. permissio...
Arthro asked 28/6, 2022 at 7:54
16
Everything was worked fine before today evening after i uninstalled vscode and installed again I'm facing this issue while try to run npm run app i have no clue how to fix this i tried to run vs co...
Loden asked 20/12, 2019 at 16:54
9
Solved
Actually need to go some path and execute some command and below is the code
code:
import os
present_working_directory = '/home/Desktop/folder'
presently i am in folder
if some_condition == t...
Centre asked 5/9, 2012 at 11:10
4
I can check the operating system of the platform that is running my Ruby code in a several ways:
RUBY_PLATFORM: https://mcmap.net/q/216627/-how-can-i-find-which-operating-system-my-ruby-program-i...
Whitewood asked 22/9, 2014 at 9:6
3
Solved
There have been various questions on SO on whether or not threads get their own stack. However I fail to understand how the OS implements or how do OSs generally implement one stack per thread. In ...
Divan asked 13/8, 2014 at 17:45
37
Is there any difference between a binary semaphore and mutex or are they essentially the same?
Misspend asked 15/9, 2008 at 13:23
5
Solved
CPU Switches from User mode to Kernel Mode : What exactly does it do? How does it makes this transition?
EDIT:
Even if it is architecture dependent please provide me with an answer. The architect...
Ecumenicity asked 19/3, 2010 at 16:59
1 Next >
© 2022 - 2024 — McMap. All rights reserved.