Tagged Questions
52
votes
10answers
45k views
How can I determine whether a specific file is open in Windows? [closed]
One of my favourite tools for linux is lsof - a real swiss army knife!
Today I found myself wondering which programs on a WinXP system had a specific file open. Is there any equivalent utility to ...
44
votes
9answers
24k views
What is the difference between mutex and critical section?
Please explain from Linux, Windows perspectives?
I am programming in C#, would these two terms make a difference. Please post as much as you can, with examples and such....
Thanks
15
votes
5answers
9k views
Monitoring certain system calls done by a process
I would like to be able to monitor certain system calls made by a process, primarily file I/O calls. On Linux I can probably get away using strace with suitable parameters, but how can I do this on ...
36
votes
7answers
16k views
Do threads have a distinct heap?
As far as I know each thread gets a distinct stack when the thread is created by the operating system. I wonder if each thread has a heap distinct to itself also?
56
votes
9answers
8k views
Why is creating a new process more expensive on Windows than Linux?
I've heard that creating a new process on a Windows box is more expensive than on Linux. Is this true? Can somebody explain the technical reasons for why it's more expensive and provide any ...
30
votes
7answers
16k views
Getting MAC Address
I need a cross platform method of determining the MAC address of a computer at run time. For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and ...
12
votes
5answers
7k views
React on global hotkey in a Java program on Windows/Linux/Mac?
A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box).
How do I do that on:
Windows ...
15
votes
8answers
13k views
How do I clear the console in BOTH Windows and Linux using C++
I need a cross platform solution for clearing the console in both Linux and Windows written in C++. Are there any functions in doing this? Also make note that I don't want the end-user programmer to ...
28
votes
7answers
8k views
Cross-platform space remaining on volume using python
I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is ...
10
votes
5answers
5k views
How to find the real user home directory using python?
I see that if we change the HOME(linux) or USERPROFILE(windows) environmental variable and run a python script, it returns the new value as the user home when I tried,
os.environ['HOME']
os.exp
Is ...
4
votes
3answers
3k views
Should I cross-compile in Linux or Windows?
To create a .exe in Linux using Qt SDK, should I cross compile my application in Linux or cross-compile my application in Windows?
30
votes
12answers
33k views
What Languages are Windows, Mac OS X and Linux written in?
I was just wondering who knows what programming languages Windows, Mac OS X and Linux are made up from and what languages are used for each part of the OS (ie: Kernel, plug-in architecture, GUI ...
27
votes
4answers
14k views
Manual for Cross-Compile a c++ application from linux to windows?
Just that. I would like some information (links, reference, examples...) to guide me to do that.
I don't even know if it's possible.
My objective is to compile a program in Linux and get a .exe ...
28
votes
4answers
7k views
Concurrency in a GIT repo on a network shared folder
I want to have a bare git repository stored on a (windows) network share. I use linux, and have the said network share mounted with CIFS. My coleague uses windows xp, and has the network share ...
22
votes
8answers
4k views
^M at the end of every line in vim
When I am editing source files using vim and other editors sometimes at the end of the line I get these ^M characters at the end of each line. I think that it has something to do with editing a file ...