Find the answer to your Linux question:
Results 1 to 3 of 3
I am currently working on a project for an Operating Systems class that requires modifying the scheduler in Debian 2.4.24. Currently the algorithm that I have devised requires that each ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    1

    Debian 2.4.24 Adding list of task_struct's to user_struct


    I am currently working on a project for an Operating Systems class that requires modifying the scheduler in Debian 2.4.24. Currently the algorithm that I have devised requires that each user has a list of tasks (processes) that are associated with it. Each task_struct currently has a pointer to a user_struct and I am assuming that this means that each task knows the user it is associated with. What would be the most efficient way to creating a list of processes in the user_struct?

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    I don't know the answer,If you didn't get any response from fellow member here, I think dropping mail to kernelnewbies.org mailing list should provide more details.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    FFh
    FFh is offline
    Just Joined!
    Join Date
    Apr 2013
    Posts
    3
    may be use list (LIST_HEAD) of tasks in user_struct, and in fork.c, while creating new task add it to this list(i'm not sure but i think that its not diffcult). So while destroying task delete it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •