1834454 Members
2441 Online
110067 Solutions
New Discussion

Re: Scheduler hpux

 
Jose_129
Regular Advisor

Scheduler hpux

That scheduler hpux 11i install by default in the server and like modifying it.

Regards,

Jose
Change password in way single user, beginning in multiuser way console
10 REPLIES 10
Mark Grant
Honored Contributor

Re: Scheduler hpux

Jose,

Do you mean cron?

If so, try "crontab -e" and enter lines like

00 16 1 * * /usr/local/bin/mycommand

which would run mycommand on the first of each month and 16.00 hours.

THe fields are

MIN HOUR DAY MONTH DAYOFWEEK COMMAND

Where "*" means all

Hope that's what you are after.
Never preceed any demonstration with anything more predictive than "watch this"
Tomek Gryszkiewicz
Trusted Contributor

Re: Scheduler hpux

You mean cron?

-Tomek
doug mielke
Respected Contributor

Re: Scheduler hpux

Jose,
If you mean used schedule for jobs, look at
cron
crontab

If you mean the Unix process scheduler, there is not much modification possible.
You can set time slice, for instance.

(You could in theory create a 'real time' OS by giving the sched proceess a low priority)
Jose_129
Regular Advisor

Re: Scheduler hpux

Real time and time Sharing
Change password in way single user, beginning in multiuser way console
Jose_129
Regular Advisor

Re: Scheduler hpux

Each thread can be scheduled, synchronized, prioritized, and can send
and receive signals. How i do that?
Change password in way single user, beginning in multiuser way console
doug mielke
Respected Contributor

Re: Scheduler hpux

This might help.
In a multi threaded application, threads could each create a process. Brief look at folowing man pages might get you started.

schedule ===> man cron
crontab
signals send to process ===> kill
rcve from process ==> $?
priorities ====> nice
renice


Jeff Schussele
Honored Contributor

Re: Scheduler hpux

See his earlier thread...

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=266437

Jose - I think I answered your questions in it. All processes started by users start with a default scheduling priority & increase as they wait for CPU time & decrease as they use it & on & on until they complete. You cannot conrol them unless you use the rtsched or rtprio commands. But *again* I will warn you to not do this UNLESS you know exactly what you're doing & the implications thereof.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: Scheduler hpux

I'll amend that last answer. Priority can be changed in the timeshare range with the nice & renice commands. But these commands cannot move priorities into the realtime range only rtsched & rtprio can do that.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Emil Velez
Honored Contributor

Re: Scheduler hpux


nice and renice adjust the nice value of normal timeshare processes. Via system calls a program can change its priority when created or during execution.

The rtprio command can create a process or adjust the priority of a proces in the range of 1-127

The rtsched can adjust or create a process with a priority of -32 to 0 and can schedule the program so it runs in a timeshare or FIFO mode.

Watch out creating processes with high priorities.

The other answers mentioned threads. They are correct that individual threads not processes have priorities now with HPUX 10.20 and above. With 11.0 individual threads can have different priorities too and the thread library has system calls to adjust their priority.

I hope this helps
Elmar P. Kolkman
Honored Contributor

Re: Scheduler hpux

One other way would be PRM (Process Resource Manager), which allow you to make program groups with limits on resources (CPU time, memory, etc) to give more priority to processes that need it. You can even move running processes between groups. But I think you need a keyword (==license) for this to be able to use it.
Every problem has at least one solution. Only some solutions are harder to find.