Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ? Post 302365387 by vishwamitra on Tuesday 27th of October 2009 09:22:37 PM
Old 10-27-2009
Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?

Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right ? Is there any difference of hierarchy between the programs that implement system calls and system level programs like that implement thread library, process management , memory managemnt etc..
Hope you understood my qstn

---------- Post updated 10-27-09 at 09:22 PM ---------- Previous update was 10-26-09 at 11:01 PM ----------

I got this cleared ..Here goes the clarification
" Functions like open() , printf() , scanf() , read() are library function implemented on top of their sys_* counterparts so they can be used for any Application development. On the other hand sys_open, sys_close, sys_read etc are implemented as-part-of-system commonly known as kernel. On top of this, system programs like thread library, compilers, linkers are implemented which helps other application development. Hope this clears the difference between system, system programs and application programs. "
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where did my programs go?

I notice that (Mandrake) Linux and Windows do not seem to operate alike in terms of installing third party software. Windows, on one hand, creates icons and adds items to the Start Menu, with the help of the InstallShield--or equivalent, of course, but Linux, on the other hand, seems to care... (3 Replies)
Discussion started by: helvetica
3 Replies

2. Programming

Compiling C programs

Hi everyone, If you have a few c programs to compile, from a make file, how can you tell which program is compiled first. Descriptively, you may have: objects = main.o xyz.o 123.o abc.o target : $(objects) $(CC) -o $@ $(objects) Does this mean program xyz is called within main,... (1 Reply)
Discussion started by: rachael
1 Replies

3. Shell Programming and Scripting

shell programs

how to write pipe for finding out the login names and login time of the users whose login name begins with p. (1 Reply)
Discussion started by: rameshparsa
1 Replies

4. UNIX for Dummies Questions & Answers

Installing Programs

Hello, I have a simple question. How do make it so i can lauch a program from the shell. For instance I want to install firefox 2 and I wanna launch it with ff2 in the terminal, so i tried this to my .bashrc file: alias ff2='/path/./firefox' and its not working as I would hope. anywho,... (2 Replies)
Discussion started by: SeamusHC
2 Replies

5. Shell Programming and Scripting

Installation of programs

I have installed a program and put the stuff on /usr/local/ However when I run a script it gives an error GMT Fatal Error: /home/chrisd/Dimech/GMT4.5.2/share/PS_font_info.d: No such file or directory (1 Reply)
Discussion started by: kristinu
1 Replies

6. Shell Programming and Scripting

Scripting Programs

Hi does anyone know some good shell scripting programs, like visual studio for C++/C#? (8 Replies)
Discussion started by: Mack1982
8 Replies

7. OS X (Apple)

Replacement programs

I just upgraded to Snow Leopard and some of my programs no longer work. I need a good DVD ripper/encoder. I was using Handbrake and Mac the Ripper but they no longer work on my MAC. They also don't have a newer viersion that works with my OS. Can someone help by giving me a suggestion? (2 Replies)
Discussion started by: bitlord
2 Replies

8. UNIX for Dummies Questions & Answers

how the operating system compiles c programs at the time of booting.

unix and linux does not makes executable files for all the programs. it compiles it and executes it whenever require. at the time of booting the system, how kernel compiles those c programs without "gcc". (1 Reply)
Discussion started by: anandgodse
1 Replies

9. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies

10. Homework & Coursework Questions

Need help on how to execute several programs

1. The problem statement, all variables and given/known data: Get each of these programs to run. Prove that you've done this(use script). Give a description of each program along with sample executions. These are the exact programs we were given. 2. Relevant commands, code, scripts,... (11 Replies)
Discussion started by: FaTaL
11 Replies
RENDEZVOUS(2)							System Calls Manual						     RENDEZVOUS(2)

NAME
rendezvous - user level process synchronization SYNOPSIS
#include <u.h> #include <libc.h> ulong rendezvous(ulong tag, ulong value) DESCRIPTION
The rendezvous system call allows two processes to synchronize and exchange a value. In conjunction with the shared memory system calls (see segattach(2) and fork(2)), it enables parallel programs to control their scheduling. Two processes wishing to synchronize call rendezvous with a common tag, typically an address in memory they share. One process will arrive at the rendezvous first; it suspends execution until a second arrives. When a second process meets the rendezvous the value arguments are exchanged between the processes and returned as the result of the respective rendezvous system calls. Both processes are awakened when the rendezvous succeeds. The tag space is common to processes in the same file name space, so rendezvous only works between processes in the same file name space. If a rendezvous is interrupted the return value is ~0, so that value should not be used in normal communication. SOURCE
/sys/src/libc/9syscall SEE ALSO
segattach(2), fork(2) DIAGNOSTICS
Sets errstr. BUGS
The correlation of rendezvous tags and file name space is a historical accident. If two unrelated processes happen to be in the same name space and do a rendezvous, trouble will result. The solution is to call rfork(RFNAMEG) (see fork(2)) in programs that use rendezvous unless they need to share the name space with their parent. This is especially important in Alef programs. RENDEZVOUS(2)
All times are GMT -4. The time now is 08:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy