Posts

Showing posts with the label System Calls and its types

Graphic design python turtle 🐢

from turtle import * import colorsys bgcolor('black') pensize(0) tracer(50) h=0 for i in range(300): c=colorsys.hsv_to_rgb(h,1,1) h+=0.9 color(c) forward(300) left(100) fd(i) goto(0,0) down() rt(90) begin_fill() circle(0) end_fill() rt(10) for j in range(5): rt(30) done() Please follow my blog and subscribe my channel for more videos and newly updates 👍👍👍👍👍 import turtle as t import colorsys t.bgcolor('black') t.tracer(100) h=0.4 def draw(ang,n): t.circle(5+n,60) t.left(ang) t.circle(5+n,60) for i in range(200): c=colorsys.hsv_to_rgb(h,1,1) h+=0.005 t.color(c) t.pensize(2) draw(90,i*2) draw(120,i*2.5) draw()

What is System Calls and it's types./Explain in detail about system calls ?

 Definition:- The interface between the operating system and the user programs in defined by the set of  "extended instruction" that the operating system provides. These extended instructions are known as system calls. User programs communicate with the operating system and request services from it by making system calls. There exists a library procedure  corresponding to each system call that user program can call. This procedure puts the parameters of the system call in a specific place, such as the machine registers, and then issues a TRAP instruction to start the operating system. When the operating system gets control after the TRAP, it examines the parameters to see if they are valid, and if so, performs the work requested. When it is finished, the operating system puts a status code in a register, telling whether it succeeded of failed, and executes a RETURN FROM TRAP instruction, to return control back to the library procedure. the library procedure then returns to th