33
loading...
This website collects cookies to deliver better user experience
printf
( in C ), print
( in Python ), println
( in Java ) function displays stuff on the console? The majority of you haven't!printf
function of C language, printf("blah blah");
, the internal code of printf
makes a system call write
which is provided by your operating system( windows, mac, linux, etc. ) Its because of this write
call, you can display things on the console. The code for this write
call is veryy complex as it is used to access the hardware(your monitor). ‼ The definition varies from author to author so take it with a pinch of salt 🙂
💡 In operating system lingo, this is called non-preemptive type of scheduling( of jobs ) because once we start a job, we don't stop executing it unless the job itself asks for IO or anything else.
33