Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
java program with xml output like 'top' in unix
I'm supposed to write a java program which exhibits behaviour similar to the tool namedtop under UNIX/Linux. It will then process the data in some way as specified to the program by the use of one
or more command-line parameters.
The program accepts the following parameters. Multiple parameters can be specified at the same time, but that certain parameters are mutually exclusive.
The program supports the following options. All the options are optional:
Top [mode=(scheduler|procanalyse)] [scheduler=(fcfs|sjf|rr)]
Can anyone help? Where do i even begin?
echo /data/procdir1 | java Top mode=procanalyse sort=user > out1.xml
echo procdir2 | java Top mode=scheduler scheduler=sjf preemptive > out2.xml
0 · ·