Suraj > Suraj's Quotes

Showing 1-12 of 12
sort by

  • #1
    “A process is an instance of an executing program. In this section, we elaborate on this definition and clarify the distinction between a program and a process.”
    Michael Kerrisk, The Linux Programming Interface: A Linux and UNIX System Programming Handbook

  • #2
    “When a process is rescheduled to run on a multiprocessor system, it doesn’t necessarily run on the same CPU on which it last executed. The usual reason it may run on another CPU is that the original CPU is already busy. When a process changes CPUs, there is a performance impact: in order for a line of the process’s data to be loaded into the cache of the new CPU, it must first be invalidated (i.e., either discarded if it is unmodified, or flushed to main memory if it was modified), if present in the cache of the old CPU. (To prevent cache inconsistencies, multiprocessor architectures allow data to be kept in only one CPU cache at a time.) This invalidation costs execution time. Because of this performance impact, the Linux (2.6) kernel tries to ensure soft CPU affinity for a process — wherever possible, the process is rescheduled to run on the same CPU.”
    Michael Kerrisk, The Linux Programming Interface: A Linux and UNIX System Programming Handbook

  • #3
    “The sched_setscheduler() system call changes both the scheduling policy and the priority of the process whose process ID is specified in pid. If pid is specified as 0, the attributes of the calling process are changed.”
    Michael Kerrisk, The Linux Programming Interface: A Linux and UNIX System Programming Handbook

  • #4
    Sabine Hossenfelder
    “Sometimes the only scientific answer we can give is “We don’t know.”
    Sabine Hossenfelder, Existential Physics: A Scientist's Guide to Life's Biggest Questions

  • #5
    Sabine Hossenfelder
    “There are other reasons we use math in physics. Besides keeping us honest, math is also the most economical and unambiguous terminology that we know of. Language is malleable; it depends on context and interpretation. But math doesn’t care about culture or history. If a thousand people read a book, they read a thousand different books. But if a thousand people read an equation, they read the same equation.”
    Sabine Hossenfelder, Lost in Math: How Beauty Leads Physics Astray

  • #6
    Narayan Wagle
    “Logically, I know divinity's just an illusion, but sometimes it seems the divine does manifest itself through art. Maybe there's a spark of the divine in all artists?”
    Narayan Wagle, Palpasa Café

  • #7
    Narayan Wagle
    “I felt exactly as you did - that we reflect each other - but i didn't have the words to express it. That's the difference between and artist and a viewer, between a writer and reader.”
    Narayan Wagle, Palpasa Café

  • #8
    Narayan Wagle
    “Does a bee ever wonder if a flower gets hurt by it's sting?”
    Narayan Wagle

  • #9
    Jeff Duntemann
    “Because I want to know how it works.”
    Jeff Duntemann, Assembly Language Step-by-Step: Programming with Linux

  • #10
    Jeff Duntemann
    “Assembly programmers are the only programmers who can truly claim to be the masters, and that's a truth worth meditating on.”
    Jeff Duntemann, Assembly Language Step-by-Step: Programming with DOS and Linux

  • #11
    Marvin Minsky
    “General fiction is pretty much about ways that people get into problems and screw their lives up. Science fiction is about everything else.”
    Marvin Minsky

  • #12
    W. Richard Stevens
    “iterative and concurrent. An iterative server iterates through the following steps: I1. Wait for a client request to arrive. I2. Process the client request. I3. Send the response back to the client that sent the request. I4. Go back to step I1. The problem with an iterative server occurs when step I2 takes a long time. During this time no other clients are serviced. A concurrent server, on the other hand, performs the following steps: C1. Wait for a client request to arrive. C2. Start a new server instance to handle this client’s request. This may involve creating a new process, task, or thread, depending on what the underlying operating system supports. This new server handles one client’s entire request. When the requested task”
    W. Richard Stevens, TCP/IP Illustrated, Volume 1: The Protocols



Rss