Skip to main content

All Questions

Tagged with
0 votes
0 answers
61 views

Is there a way to write an image to memory with Python and read it from another application written in C++?

I would like to create and write an image to the memory in such a way that other processes are able to read it. The goal is to have a Python script create some graph using matplotlib.pyplot, write it ...
Falesz's user avatar
  • 17
1 vote
1 answer
69 views

How to read/inspect variables of a binary at runtime?

Let's say we compile a C program (with debugging symbols) into a binary and run it. We now want to know the state of the variables inside of the process while it is running. The most straight forward ...
Opifex's user avatar
  • 481
0 votes
0 answers
21 views

Is there a way to monitor computer memory for a file to be loaded and then execute a different process to act on the file?

System: Linux (Debian) I would like to hash many large files (1 GB each, ~2 TB total) on my hard drive. However I do not want to spin my entire hard drive just to generate the hashes. Is there any way ...
Harrison's user avatar
0 votes
1 answer
296 views

Is there a way to programatically obtain the Task Manager "Users" tab?

The Windows Task Manager (taskmgr.exe) has a Users tab that displays a table of user names, session status, total CPU % usage and total memory usage. Is there a way to obtain this data programatically ...
tjlds's user avatar
  • 1
1 vote
0 answers
32 views

Multiple processes spawned when running Django runserver

Sometimes, When I run Django (ver 4.1.6) runserver and monitor the usage memory usage using htop I see that there multiple processes or threads spawned (see the below image). The same thing doesn't ...
Krishna's user avatar
  • 319
2 votes
1 answer
37 views

Why variables are not stored in the process data area in Swift

I know that global variables, static variables, etc. are stored in the Data area of the process memory area. But, I know that variables of type such as implemented in struct are stored in the stack. ...
iyeaaa's user avatar
  • 37
1 vote
0 answers
74 views

How to get cpu, memory used by a process launched via the Java process API?

Hi I need to start a Linux process from the Java API (ProcessBuilder.start()). Is there some way I can monitor this child process for memory, cpu usage etc? I will be starting more than one process at ...
Thomas Bratt's user avatar
  • 50.4k
0 votes
1 answer
272 views

What would be an example of position-dependent code?

Position-dependent code is written to be loaded in, and run from, a particular physical address in memory. One of the problems that this type of code poses is that it hinders the processor's ...
Mehdi Charife's user avatar
1 vote
2 answers
1k views

Python Forking in multiprocessing Process vs Pool

I came across this question: I wanted to make use of forking and inheritance of memory-objects with python for efficient memory usage in a multiprocessing setting. (This code example is not to ...
Jost's user avatar
  • 117
1 vote
0 answers
741 views

How to get Private Working Set Memory for process in C++

I am interested in monitoring memory usage for a process, much like in the Task Manager, given the process ID on windwos platform. After reading this question and answers and reading up on the ...
Euchidna's user avatar
1 vote
1 answer
176 views

Whats the difference between open and native handle in c#

I am looking for the difference between IntPtr handle_1 = process.Handle; Gets the native handle of the associated process. [DllImport("kernel32.dll", SetLastError = true)] public static ...
Stani B.'s user avatar
0 votes
0 answers
432 views

How to read data from ".data" section of a process?

So, as far as I understand from looking online, the .data section of the PE file contains the static and global variables of the program. All I am trying to do is create a variable in Python, or write ...
moti shaku's user avatar
-1 votes
1 answer
340 views

linux process exiting takes too long

Here is my problem, when I send kill command to my process, no matter kill -9 or kill -TERM, my process steps into zombie(defunct) stats which needs the father process to call waitpid to catch the ...
vinllen's user avatar
  • 1,429
1 vote
1 answer
407 views

Is it possible in Python to load a large object into memory with one process, and access it in separate independent processes?

I'm writing a program that requires running algorithms on a very large (~6GB) csv file, which is loaded with pandas using read_csv(). The issue I have now, is that anytime I tweak my algorithms and ...
clambot's user avatar
  • 55
0 votes
0 answers
96 views

List Windows process memory handle

I would like to list all the memory blocks allocated within my own process. (GlobalAlloc, HeapAlloc, CoMemAlloc) Memory address, size. Possible?
BuhX's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
24