06-10-2014
Quote:
Originally Posted by
Akshay Hegde
Don't worry about syntax, if you can develop / improve above things, you can easily start coding with the help of some manual / online resources / Forums
There is an old proverb: a dedicated programmer can write FORTRAN programs in any language. ;-))
In principle you are right. To put it in theoretical terms: as long as a language is
Turing-complete or Turing-equivalent it is possible to use any language for every problem. Still, most languages develop a certain "look and feel" about their specifics and it is in most cases suboptimal in the long run to try to force language As way of programming onto language B.
This reminds me of the people who go to a foreign country and try to pretend still to be living in the country they come from. Whats the point of going somewhere and then to demand that the cooking should be the same as used from at home?
bakunin
This User Gave Thanks to bakunin For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can someone give me the link to any site that deals on HP-UX system administration?? Please do not refer me to buy or borrow any books, i just need a free site to learn some quick info from (1 Reply)
Discussion started by: TRUEST
1 Replies
2. UNIX for Dummies Questions & Answers
Hiya, yes im new to all of this! But want to learn how to use Unix etc, iv been thinking about doin a course but desided im better off learning by my self with help from the people who really no what there doin...you guys!
I can install Linux, like redhat, mandrake, susie server edition and so... (5 Replies)
Discussion started by: epic.admin
5 Replies
3. Programming
Hi,
Apologies if this question has been asked before.
I would like to know which language is better to learn in terms of programming in unix? is C dying out and being replaced by C++ or is it a combination of the 2 or just mainly C?
Thanks
C19 (2 Replies)
Discussion started by: c19h28O2
2 Replies
4. UNIX for Dummies Questions & Answers
Hey everybody, I am a 25 year old web programmer in Malaysia. I am not hapy with my line of work and I want to do something more. I know asp.net,asp,php and jsp.But they dont really land me in a good promising job wich I realy love.
I am more interested in Oracle DBMS. now to be a DBA in Oracle... (7 Replies)
Discussion started by: shounak
7 Replies
5. UNIX for Dummies Questions & Answers
What's the best free system to learn HP-UX on? The closest system, hardware requirements and installation instructions. I'm a newbie but determined. Any tips would be great. (6 Replies)
Discussion started by: networkguy
6 Replies
6. Red Hat
I Want to learn Red hat Linux at free of cost, can any one help me, I am zero in unix. (7 Replies)
Discussion started by: Mustaq
7 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am the ultimate noob when it comes to UNIX. Apart from a few basic thing like ls -l and mkdir (and that really is about as good as it gets) I know absolutely nothing about UNIX and I want to learn it and get better!
I'm sure like with most things, just getting stuck in and trying... (3 Replies)
Discussion started by: thebdj
3 Replies
8. UNIX for Dummies Questions & Answers
Hi
I know only basics of UNIX and i want to know that how can i become a good troubleshooter in unix adminstartion or shell scripting....
i am just a newbie to Unix ..i do not have programming skills as well.
Your suggestions are welecomed. (1 Reply)
Discussion started by: nattynitin
1 Replies
9. What is on Your Mind?
I am not passing a comment, just waiting to read yours... ;oD
Decoded: learn to write computer code in a day - Telegraph
Decoded | Technology made human | On Demand, Enterprise, Masterclass (6 Replies)
Discussion started by: wisecracker
6 Replies
LEARN ABOUT ULTRIX
setpriority
getpriority(2) System Calls Manual getpriority(2)
Name
getpriority, setpriority - get or set program scheduling priority
Syntax
#include <sys/time.h>
#include <sys/resource.h>
#define PRIO_PROCESS 0 /* process */
#define PRIO_PGRP 1 /* process group */
#define PRIO_USER 2 /* user id */
prio = getpriority(which, who)
int prio, which, who;
setpriority(which, who, prio)
int which, who, prio;
Description
The scheduling priority of the process, process group, or user, as indicated by which and who, is obtained with the call and set with the
call. The which is one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and who is interpreted relative to which (a process identifier for
PRIO_PROCESS, process group identifier for PRIO_PGRP, and a user ID for PRIO_USER). The prio is a value in the range -20 to 20. The
default priority is 0; lower priorities cause more favorable scheduling.
The call returns the highest priority (lowest numerical value) enjoyed by any of the specified processes. The call sets the priorities of
all of the specified processes to the specified value. Only the superuser may lower priorities.
Return Values
Since can legitimately return the value -1, it is necessary to clear the external variable errno prior to the call, then check it afterward
to determine if a -1 is an error or a legitimate value. The call returns 0 if there is no error or -1 if there is.
Diagnostics
The and system calls fail under the following conditions:
[ESRCH] No processes were located using the which and who values specified.
[EINVAL] The which was not one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER.
In addition to the errors indicated above, setpriority can fail under the following conditions:
[EPERM] A process was located, but neither its effective nor real user ID matched the effective user ID of the caller.
[EACCES] A user other than the superuser attempted to change a process priority to a negative value.
See Also
nice(1), fork(2), renice(8)
getpriority(2)