8 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
"Your a7.c program should use printf to print a nice message. (You can decide what to say.) Then the process... (9 Replies)
Discussion started by: miniviking10
9 Replies
2. UNIX for Advanced & Expert Users
Hi,
I was working in an IT firm. My stream was UNIX, C, C++.
worked for an year and half and then left the job.
there has been a gap of 2 years already and wanna get back again. i have some 6 more months to that. want to do some certification to help me get back.
c,c++ are fine. unix system... (1 Reply)
Discussion started by: niaR
1 Replies
3. UNIX for Dummies Questions & Answers
this method is not working.I am having a problem to use variables in system command. i cannot use the variables in system command.
this how i was did
system("whereis command");
this method works very fine. but, i want use the commands as variable.
that means i want only pass the variables.... (6 Replies)
Discussion started by: dhanda2601
6 Replies
4. UNIX for Dummies Questions & Answers
Hi friends,
I hope you are all fine and doing well. First of all, let me say that I love Unix with passion. But I have one query in my mind that is bothering me. What should I do, Unix System Administration or Unix System Programmering. Could you please tell me the difference between the two. And... (3 Replies)
Discussion started by: gabam
3 Replies
5. Programming
Dear all,
Currently I'm working on a C program (OS = ubuntu 9.0.4)in which a USB key will
be mounted and umounted for several times. I read the man page
of the mount system call.
I use the following test code
#include <sys/mount.h>
int main(int argc, char *argv)
{
if... (5 Replies)
Discussion started by: dariyoosh
5 Replies
6. Windows & DOS: Issues & Discussions
I am sure this question has been asked and answered before, also, if it is the wrong catergory, please let me know.
I would like to know how, if possible to run Unix/Linux as my operating system, and then load XP as a program? (I am open to other operating systems, but it has to be able to... (3 Replies)
Discussion started by: mountainwolf
3 Replies
7. AIX
system() in a c++ program halts in AIX 5.3, though the corresponding binary working fine in AIX 5.2 and lower version. I am executing a script using system in a c++ program. the script has the execute permission by all. (0 Replies)
Discussion started by: Amiya Rath
0 Replies
8. Programming
Hi
i used the following code to copy a directory from a source location to dest.
argv contains the source loc i/p by the user.
strcpy(source,argv);
strcpy(dest,"/home/MainServer/Job_dir/");
system("cp -r $source $dest");
it complies properly but during execution of the program it... (2 Replies)
Discussion started by: mridula
2 Replies
__PPC_SET_PPR_MED(3) LinuxProgrammer's Manual __PPC_SET_PPR_MED(3)
NAME
__ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, __ppc_set_ppr_med_low, __ppc_set_ppr_med_high - Set the Program Priority Reg-
ister
SYNOPSIS
#include <sys/platform/ppc.h>
void __ppc_set_ppr_med(void);
void __ppc_set_ppr_very_low(void);
void __ppc_set_ppr_low(void);
void __ppc_set_ppr_med_low(void);
void __ppc_set_ppr_med_high(void);
DESCRIPTION
These functions provide access to the Program Priority Register (PPR) on the Power architecture.
The PPR is a 64-bit register that controls the program's priority. By adjusting the PPR value the programmer may improve system throughput
by causing system resources to be used more efficiently, especially in contention situations. The available unprivileged states are cov-
ered by the following functions:
* __ppc_set_ppr_med() sets the Program Priority Register value to medium (default).
* __ppc_set_ppr_very_low() sets the Program Priority Register value to very low.
* __ppc_set_ppr_low() sets the Program Priority Register value to low.
* __ppc_set_ppr_med_low() sets the Program Priority Register value to medium low.
The privileged state medium high may also be set during certain time intervals by problem-state (unprivileged) programs, with the following
function:
* __ppc_set_ppr_med_high() sets the Program Priority to medium high.
If the program priority is medium high when the time interval expires or if an attempt is made to set the priority to medium high when it
is not allowed, the priority is set to medium.
VERSIONS
The functions __ppc_set_ppr_med(), __ppc_set_ppr_low() and __ppc_set_ppr_med_low() are provided by glibc since version 2.18. The functions
__ppc_set_ppr_very_low() and __ppc_set_ppr_med_high() first appeared in glibc in version 2.23.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+---------------------------+---------------+---------+
|Interface | Attribute | Value |
+---------------------------+---------------+---------+
|__ppc_set_ppr_med(), | Thread safety | MT-Safe |
|__ppc_set_ppr_very_low(), | | |
|__ppc_set_ppr_low(), | | |
|__ppc_set_ppr_med_low(), | | |
|__ppc_set_ppr_med_high() | | |
+---------------------------+---------------+---------+
CONFORMING TO
These functions are nonstandard GNU extensions.
NOTES
The functions __ppc_set_ppr_very_low() and __ppc_set_ppr_med_high() will be defined by <sys/platform/ppc.h> if _ARCH_PWR8 is defined.
Availability of these functions can be tested using #ifdef _ARCH_PWR8.
SEE ALSO
__ppc_yield(3)
Power ISA, Book II - Section 3.1 (Program Priority Registers)
GNU C Library 2017-09-15 __PPC_SET_PPR_MED(3)