mind shattering good questions


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users mind shattering good questions
# 1  
Old 11-04-2005
Question mind shattering good questions

i want to make a C program that should wb able to do the following tasks.

one thing that i want to say is that we dont have to use ps and top all these commands

by C programmign only ..........

i am doing this by proc file system using CAT command in various files but .......its not correct

can anyone tell me how to see the parameters of task_struct Smilie

1. Should be able to show the status of all the processes
2. Should be able to show the new processes coming in
3. Should be able to keep a log of the processes expired(The log should contain the starting time, expiry time, time slices used, total execution time, effective CPU usage time, time wasted for IO etc.)
4. Should be able to show the CPU usage time, Transition time, Wait time in the queue, No of total time slices used to run etc.
5. If possible should be able to show the memory usage of each process(both Physical and Virtual)
6. If possible should be able to keep log of all this information. Also keep track of the swapping of the processes.
7. Should be able to automatically analyse the information stored and show a graph of the usage times etc. And should suggest the best possible time slice for that environment.
8. Should be able to show the resources used by each process. And should keep a log of resource allocation for a process.
9. Should be able to show the percentage of Usage of CPU during a time slice by the process and a log should be maintained for this.
10. Should be able to show the priorities of different processes and show how preemtion takes place. Also show the number of timeslices alloted for processes of different priorities.
11. Should be able to show the processes waiting in the queue etc.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

PI calculated by hand. If this doesn't blow your mind nothing will.

This came to my attention very recently... I have put it here as a fun item not related to UNIX in any way... Chudnovsky algorithm - Wikipedia WOW! And a great, light hearted 16 minute video about it: Calculating π by hand: the Chudnovsky algorithm - YouTube Enjoy... (3 Replies)
Discussion started by: wisecracker
3 Replies

2. Hardware

Old RS/6000 lost its mind

Some time ago I bought an old microchannel RS/6000 39H as a hobby toy. I mostly deal with newer Sun/Oracle equipment so I'm a bit out of my element. The machine was running, AIX 4.1.3 I believe. Using it via IBM terminal. I stored it for what was apparently too long, and now it stalls out... (11 Replies)
Discussion started by: drjohnnyfever
11 Replies

3. What is on Your Mind?

Something in my mind - what's your opinion ?

Dear Forum staff / Advisors / members , I am having something in my mind, about Linux / Unix possible Interview questions collections, I guess if I post them here,which might be useful for our members and for students, and in meantime we can discuss also about those questions, what's your... (4 Replies)
Discussion started by: Akshay Hegde
4 Replies

4. What is on Your Mind?

do mind posting ur salary, location(not detailed), job field, work years here

do mind posting ur salary, location(not detailed), job field, work years here I dont you whether you guys are from different countries...but i guess most of you are from different countries, but all in all, we are acting as an ITer.... I just wanto know more about you never mind:p (0 Replies)
Discussion started by: macroideal
0 Replies

5. What is on Your Mind?

another whats on my mind!!! - winter waves

for anyone who surfs the northeast: why can't we have more frequent wave forming winds (bigger low pressure systems) in the summer?! i'm tired of putting on 100lbs of wet suit and surfing awesome waves. i'd rather put on no wet suit and surf awesome waves. :) damn the bermuda high!! anyone... (1 Reply)
Discussion started by: pupp
1 Replies

6. UNIX for Dummies Questions & Answers

Unix command in mind map

I found this link that might be useful for a newbie to remember unix commands. It use mind map technique and summarize everything within one page. http://mind-map-you.blogspot.com/2006/12/unix-command-in-mind-map.html (0 Replies)
Discussion started by: bani100
0 Replies

7. What is on Your Mind?

I Am Calling All Unix Experts Young Mind In Need

My name is Courtney Robinson, and I am just a young man trying to figure out were he wants his life to head. I am currently in school for Computer Science and have once class left and jsut figured out I hate programming. However I am in love with Storage (SAN), UNIX, LINUX. I want to learn more.... (10 Replies)
Discussion started by: Courtney3216
10 Replies
Login or Register to Ask a Question