Sponsored Content
Full Discussion: Scheduling Policy Of Process
Top Forums UNIX for Advanced & Expert Users Scheduling Policy Of Process Post 19431 by manjunath on Thursday 11th of April 2002 09:55:33 AM
Old 04-11-2002
MySQL Scheduling Policy Of Process

Hello
How to know the scheduling policy of the process in
HP-UX.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

regarding the scheduling of the process

Hello, I would like to schedule a command at a specific time on my system.I know that theres a file named at.alow and at.deny in my system. I can find the at.deny file but not an at.allow file . Is there anyway out or i have to go and talk to the system administrator itself , or any other way of... (1 Reply)
Discussion started by: prashantuc
1 Replies

2. Programming

scheduling a process

hi there i m having a confusion here with the looping in this example below. can someone help me out!? #include<stdio.h> main() { char it = 'a'; char stop = 'z'; int x,ret; for(; it<'f';it++) { // for(x=0; x<32000;x++) ... (4 Replies)
Discussion started by: a25khan
4 Replies

3. UNIX for Dummies Questions & Answers

Policy Manager

I have searched all over the SCO website and can't seem to find an answer to this error message. Has anyone seen the following error, and if so what steps do I need to take to fix it? I don't really want to reload the entire OS if I don't have to. LOGIN: ERROR- Failed to initialize policy... (1 Reply)
Discussion started by: mikeinmi
1 Replies

4. Shell Programming and Scripting

job/process scheduling or control

Hi forum, I have a problem concerning job or process scheduling and control. I have to run 24 jobs (could be more sometimes less) of the same programme with different parameters. The machine this code is running on is an 8-core machine, so I was thinking that running all the processes at once... (0 Replies)
Discussion started by: deiphon
0 Replies

5. AIX

Adjust disk scheduling priority for a process?

Hi all! Some dumb administrator run the weekly backup "by hand" on our AIX 5.3 server, which we use to deploy Websphere applications, during work hours. Using the server while the backup is taking place is almost imposible. Both the disks are working at 100% and it's almost unusable. Asking the... (2 Replies)
Discussion started by: shandrio
2 Replies

6. UNIX for Dummies Questions & Answers

Process Scheduling where to start

Hello, i'm absolutely new to the whole Operating Systems thing. I am pretty much level 0. My assignment is to "simulate the execution of a stream of processes by a computer system, one CPU, many terminals 12 disk drives, 30 public mailboxes. The professor runs a series of inputs which is a... (1 Reply)
Discussion started by: JaneSkylar
1 Replies

7. Cybersecurity

Need patch policy help

I'm working on developing a patch policy for a mid-size and quickly growing company. Patches have been at the bottom of the totem pole for years. I possess the ability and care enough to straighten it out. However I'd like some others input on the best way to handle the patch policy. From when... (1 Reply)
Discussion started by: jlouki01
1 Replies

8. AIX

Password Policy

I need help. I have set a password policy. But I want to dis allow setting user name as password. My policy is as below... min length =8 min diff=2 min alpha=2 max repeats=2 dictionary= /usr/share/dict/words Still user can set his username as password (i.e. Jackie1234). Code tags for... (11 Replies)
Discussion started by: powerAIX
11 Replies

9. Shell Programming and Scripting

Process Scheduling Information Extraction

I want to extract the process having highest utilization on each processor core and then output its information (PID etc.) to a file. How can I do it by using either top or ps command? Thanks. (1 Reply)
Discussion started by: Vaibhavs1985
1 Replies
sched_getscheduler(3)					     Library Functions Manual					     sched_getscheduler(3)

NAME
sched_getscheduler - Returns the scheduling policy of a process (P1003.1b) LIBRARY
Realtime Library (librt.so, librt.a) SYNOPSIS
#include <sched.h> int sched_getscheduler ( pid_t pid); PARAMETERS
pid Specifies the ID of the process for which the scheduling policy is to be obtained. If pid is zero, the scheduling policy of the calling process is obtained. DESCRIPTION
The sched_getscheduler function returns the current scheduling policy of a process. The values that can be returned are defined in the header file <sched.h>. The sched_setscheduler function changes the scheduling policy and priority of a process. Changing the scheduling policy and priority ensures that an application can determine more effectively when a process will run. The realtime scheduling policies are as follows: SCHED_FIFO Specifies the first-in, first-out (FIFO) scheduling policy SCHED_RR Specifies the round-robin (RR) scheduling policy SCHED_OTHER Specifies the standard timesharing scheduling policy The SCHED_FIFO and SCHED_RR scheduling policies are fixed-priority scheduling policies. You can specify a priority for your process and the scheduler will not adjust it. Setting priorities in conjunction with a SCHED_FIFO scheduling policy allows a critical process to run as soon as it is ready, for as long as it needs to run, because the process will preempt other lower-priority processes. The round-robin scheduling policy is similar to first in-first out, but also imposes a quantum on execution time. Use the sched_rr_get_interval function to determine the current quantum for process execution under the SCHED_RR scheduling policy. The scheduler adjusts process priorities running under the timesharing scheduling policy. No special privileges are needed to use the sched_getscheduler function. RETURN VALUES
On a successful call to sched_getscheduler, the scheduling policy of the process is returned. If there is an error, -1 is returned and errno is set to indicate the error. ERRORS
The sched_getscheduler function fails under the following condition: [ESRCH] No process can be found corresponding to that specified by pid. RELATED INFORMATION
Functions: getpid(2), sched_getparam(3), sched_setparam(3), sched_setscheduler(3) Guide to Realtime Programming delim off sched_getscheduler(3)
All times are GMT -4. The time now is 07:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy