Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. Is there a way to control a process in memory?

Is there a way to control a process in memory?

Scheduled Pinned Locked Moved Java
questiondata-structuresperformancehelplearning
2 Posts 2 Posters 17 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Wong RZ
    wrote on last edited by
    #1

    For more details and orderliness,here gives items to show what I want a program A could do these: 1.Supervise how much memory the program B consumed.If the program B was running and allocated memory exceeded the speciafied number,then report back to screen. 2.Restrict the priority of accessing the files out of its directory/folder to program B.Avoid running the dangerous code like system("reboot") from programs. 3.Kill the Process B if there includes any code lead to never finish running.e.g while(1){}.Of course,if a legal program run out time will be also killed. 4.How can I capture these above return messages,e.g Runtime error,stack overflow,Memory Limit Exceed.So much information just for users. Note:This is very similar to a online judge system. Thanks In Advance.

    no cross no crown.

    T 1 Reply Last reply
    0
    • D David Wong RZ

      For more details and orderliness,here gives items to show what I want a program A could do these: 1.Supervise how much memory the program B consumed.If the program B was running and allocated memory exceeded the speciafied number,then report back to screen. 2.Restrict the priority of accessing the files out of its directory/folder to program B.Avoid running the dangerous code like system("reboot") from programs. 3.Kill the Process B if there includes any code lead to never finish running.e.g while(1){}.Of course,if a legal program run out time will be also killed. 4.How can I capture these above return messages,e.g Runtime error,stack overflow,Memory Limit Exceed.So much information just for users. Note:This is very similar to a online judge system. Thanks In Advance.

      no cross no crown.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      as long as your "judge" doesn't go inspect the binary code directly in the .class file, i don't really think most of your points can be done. btw: No need to REPOST !!! this is a forum, not a chat, so please be patient

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups