Date: 12 Oct 2013
Subject: Assignment 3
Chapter 7 page 251 Exercises 1,3,4,8
1. What does the shell ordinarily do while a command is executing? What should you do if you do not want for a command to finish before running another command?
While the command is executing, the shell waits for the process to finish. Or sleeps
3. What is a PID number? Why are these numbers useful when you run processes in the background? Which utility displays the PID numbers of the commands you are running?
PID process identification numbers. Each of these numbers identifies the command running in the background. You can use the PS (process status) utility to display the PID numbers of running commands.
4. Assume that the following files are in
…show more content…
When CDPATH is set and the working directory is not specified in CDPATH, cd searches the working directory only after it searches the directories specified by CDPATH.
b. $ pwd
/home/zach/grants
$ CDPATH=$(pwd)
$ cd $HOME/biblios
After executing the preceding commands, Zach’s working directory is
/home/zach/biblios. When you give cd an absolute pathname as an argument, cd does not use CDPATH.
8. Enter the following command:
$ sleep 30 | cat /etc/services
Is there any output from sleep? Where does cat get its input from? What has to happen before the shell displays a prompt?
There is no output from sleep (try giving the command sleep 30 by itself).
The /etc/services file provides input for cat (when cat has an argument, it does not check standard input). The sleep command has to run to completion before the shell displays a prompt.
Chapter 9, p.357, Advanced Exercises 10,11
10. Write a shell script that outputs the name of the shell executing it.
There are many ways to solve this problem. The following solutions are all basically the same. These scripts take advantage of the PPID shell variable, which holds the PID number of the shell that is the parent of the process using the variable. They also use the fact that echo changes multiple sequential SPACEs to a single SPACE. The cut utility interprets multiple sequential SPACEs as multiple delimiters, so the script does not work properly without echo.
$ cat a
The original taskeng.exe file is a safe Microsoft Windows system process, called "Task Scheduler Engine". But, the user are recommended to detect Taskeng.exe by identifying same file name.
Stress, we all have it in our lives and for some of us it affects us in ways we do not even realise it. This causes me great discomfort as this leads me to not even have the ability to begin my tasks as I am concerned about how I will be able to complete it on time. Once I am able to resolve this predicament I will be confident enough about accomplishing all my tasks and concluding these tasks to my best effort.
! for troubleshooting access-list 111 permit icmp any 192.168.1.0 0.0.0.255 echo access-list 111 permit icmp any 192.168.1.0 0.0.0.255 echo-reply
Full Backups: A full backup is a complete backup of everything. Sometimes referred to as a normal backup. This normally takes the longest time to perform (and is typically the largest option).
III. Mass Transportation- Encourage usage of mass transportation to improve air quality and traffic congestion.
Busy waiting is a technique in which a process repeatedly checks to see if a condition is true without getting the processor time. While a process is in its critical section, any other process that tries to enter its critical section must loop continuously to get the critical section. This will make the process eat CPU (usually). That is just busy for waiting the processor time.
It has a thread ID, a program counter, a register set, and a stack. Thread is smaller than a process so thread creation needs only some resources when with a process creation. In creating a process, it requires to allocate the process control block (PCB).The PCB includes a memory map and list of open files. A process creation makes memory being allocated for program instructions and data.
When the newly created process from the “New” state is admitted to the list visible to the operating system, the process enters the “Ready” state. Processes in the ready state are ready to be executed but are in
The internal factors to be considered when planning the human resource requirements for an organisation are the internal planning force, demands for products/services, technological change, skill requirements, workforce profiles (age, gender, ethnicity, ability) and new markets. Internal planning factors are within the business to help the organisation change to cope with new methods of work or new demands; it may be the business is being introduced to new technology or new product lines. Also it maybe developing new skill so that the workforce can work more efficiently.
Under Part 4 of Section 4 we are informed when assessing capacity we must ‘permit and encourage a person to participate or to improve his or her ability to participate as fully as possible in making an informed decision which affects his future’.
When several processes are using same processor, then running one process, suspending it, then storing the variable data and switching to other process is called context switch. This effects the two level prediction because every time when we switch between processes, the global branch history, local history table and pattern history table are
the sermon from Sunday, but wanted to know the title. I explained to the caller I did not have the title for that Sermon on WSPA at this time and could give him the church number to further assist him with that. Also, I explained to him I could order that local sermon from Sunday, July 5th on CD with no problem. Caller went ahead and just placed the order.
In Mahout, the Data Model interface represents the data model; there are implementations for loading this data from a file, a relational database, MongoDB or you could add your own implementation.
18. Your computer is slowing down because you’ve started a process that is taking most
5. When the processing is complete the CPU reloads the previously suspended program’s registers/commands/data, and processing continues from where it left off.