Thread: creating process and its address space

  1. #1
    Registered User
    Join Date
    Aug 2020
    Posts
    2

    creating process and its address space

    Hi every one!
    I want to create a process and determine its memory size at the creation time, could you please help me?!
    TNX in advance

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,300
    Call getrusage() to return a struct containing some information.
    getrusage(2): resource usage - Linux man page

    Rummage through the /proc/PID/stat file to find yet more information.
    proc(5): process info pseudo-file system - Linux man page
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 10-06-2016, 09:15 AM
  2. Reading process address space
    By nadia_tarik in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2012, 10:15 AM
  3. Replies: 8
    Last Post: 03-31-2008, 10:14 AM
  4. how do you get the min and max address space of a process ,
    By Anddos in forum Windows Programming
    Replies: 3
    Last Post: 06-07-2007, 01:30 AM
  5. Replies: 12
    Last Post: 05-17-2003, 05:58 AM

Tags for this Thread