Posts

Showing posts with the label unix

Answers to Exercises

Answers to Exercises uninitialized data are simply recorded as a size. The initialized data must be represented in the file so that the kernel can copy them into memory when the process lirst references them. Me uninitialized data are delined to be zero, and consequently do not need to occupy any space in the executable file. The kernel memory that it fills with zeros. handles an initial fault on a page of uninitialized data by providing a page of 3.8 Why is the conversion from UTC to local time done by user processes, rather than in the kernel? All UNIX kernels worldwide have their concept of time synchronized to UTC. A timestamp from one kernel can be compared with a timestamp on any other kernel. Having the conversion of UTC to local time done by user processes ensures that each user process is presented with times that are expected for that process. If a user is logged into a system remotely, from a different time zone, she will see times displayed in her loc...

Design Overview

Chapter 2 Design overview of 4.38Rh 6. Simulating output tabs with appropriate numbers of spaces ?. Pmviding translatiolr Mr uppercase-only terminals 8, Displaying echoed nongraphic ASCII characters as a two-character S e qtierice ot character related to the control character) 9. Generating an EOF indication to the process reading from the terminal response to a particular input character sequence 2.12 What is the diflefence between a pipe and a socket? lated process Nnn: n. 2.12 A pipe provides a unidirectional byte stream to a related process running on the same machine. A socket provides a bidirectional endpoint of communication that may be connected to any interested process on any machine accessible on the network. 2.13 Describe how to create a group of processes in a pipeline. A pipeline is created in several steps: 1. Me parent process, usually a shell, creates a pipe using pipe. 2. Me parent process creates the first process in the pipeline usingjork. 3...