OSCA Individual Assignment
OSCA Individual Assignment
CT049-3-1-OSCA
OPERATING SYSTEM AND COMPUTER ARCHITECTURE
UC1F1502SE
VIJAYALAXMI AMUTHAN
CT049-3-1
Page 1 of 31
Marking Grid
Marks
20%
Referencing
10%
Analysis
30%
Reflection
30%
Documentation
10%
Level 1
Given Marks
2015
CT049-3-1
Page 2 of 31
Acknowledgement
Firstly, I would like to thank our lecturer Ms. Vijayalaxmi Amuthan for all the help and
guidance given to me while doing this assignment. Especially for teaching me the module in
such a way that I were able to learn this highly technical module very easily.
Also there are many individuals who have helped me in numerous ways directly and indirectly
so that I was able to complete this assignment.
If there are any shortcomings in this project, then I request to excuse me from all those and
accept this documentation.
Level 1
2015
CT049-3-1
Page 3 of 31
Abstract
This assignment is an individual assignment in the module Operating Systems and Computer
Architecture module for UC1F1502SE
The basis of this research includes an investigation and explanation of two important areas in
the module. The purpose of this research is getting information and knowledge about memory
management in the operating system and the other part is registers in computer system
architecture. In section (A) operating system, it will be explained about memory management
of Mac OS X operating system. In section (B) computer architecture, will be explain about
Registers of in a modern computer.
Memory management of Mac OS X which will be explained in this report, it will include such
point like: about the memory management of the major mechanisms such as: how memory is
managed including how memory is managed including mechanisms and strategies used. In the
end, it will mention about problems and solutions which are faced by the mechanisms
mentioned of memory management in Mac OS X operating system.
The second part of this research or report is about the computer system architecture that will
be discussed about registers in modern computer. Areas to be discussed in this report
documentation are the reasons for registers, types of registers, size of registers and also the
organization of the different types of registers.
Level 1
2015
CT049-3-1
Page 4 of 31
Table of Contents
Marking Grid ............................................................................................................................. 1
Acknowledgement ..................................................................................................................... 2
Abstract ...................................................................................................................................... 3
Introduction ................................................................................................................................ 5
Section 1: Operating System ...................................................................................................... 6
Introduction to Memory Management ................................................................................... 6
Managing Memory in OS X ................................................................................................... 7
Mechanisms and strategies used ............................................................................................ 8
Problems faced in memory compression ............................................................................. 12
Solutions to improve memory compression ......................................................................... 13
Limitation and Extension ..................................................................................................... 14
Section 2: Computer Architecture ........................................................................................... 15
Introduction to Registers ...................................................................................................... 15
Reasons for registers ............................................................................................................ 16
Types of registers ................................................................................................................. 17
Size of registers .................................................................................................................... 20
Organization in registers ...................................................................................................... 22
Limitation and Extension ..................................................................................................... 23
Conclusion ............................................................................................................................... 24
References ................................................................................................................................ 25
Appendix .................................................................................................................................. 27
Frequently Asked Questions ................................................................................................ 27
Section 1: Operating Systems ........................................................................................... 27
Section 2: Computer Architecture .................................................................................... 29
Gantt Chart ........................................................................................................................... 31
Level 1
2015
CT049-3-1
Page 5 of 31
Introduction
An operating system (OS) is a collection of software that manages computer hardware or
enables the computer hardware to communicate and operate with the computer software and
supports a computer's basic functions, such as scheduling tasks, executing applications, and
controlling peripherals. The OS is found on virtually any device with multiple programs such
as: computers, cellular phones and video games, supercomputers, vehicles, net (web) servers,
& even washing machines and some other devices also.
In other hand, Mac OS X was initially launched by Apple in the year 2000 with its first version,
Mac OS X Public Beta, a $29.95 preview version codenamed Kodiak for Apple to make
UI changes based on public feedbacks. OS X is a UNIX operating system built on technology
that had been developed at NeXT through the second half of the 1980s and up until Apple
purchased the company in early 1997. With a desktop-oriented Mac OS X v10.0 launched in
March 2001, six more versions were released between the years 2001 up to 2009. The most
recent and current UNIX certified version OS X 10.10 Yosemite was made available on
October 16, 2014. (Anon., 2015)
Computer architecture is a specification detailing how a set of software and hardware
technology standards interact to form a computer system or platform. It is likened to the art of
determining the needs of the user/system/technology, and creating a logical design and
standards based on those requirements. In short, computer architecture refers to how a
computer system is designed and what technologies it is compatible with. (Janalta Interactive
Inc., 2010-2015)
A register is a single, permanent storage location within the CPU used for a particular, defined
purpose. A register is used to hold a binary value temporarily for storage, for manipulation.
These companies Apple, DEC, Intel, Marvell: ARM6, StrongARM, XScale are providing
processor register.
Level 1
2015
CT049-3-1
Page 6 of 31
Level 1
2015
CT049-3-1
Page 7 of 31
Managing Memory in OS X
Apple changed how memory is managed on a Mac with the release of OS X version 10.9,
Mavericks. In older versions of OS X, memory usage was built around a standard memory
management system which shows that apps need to request an allocation of RAM. Once the
apps are done and no longer needs it, they will return the allocation.
The OS took care of most of the work in keeping track of how much RAM was available and
who was using it. The OS also figured out what to do if the amount of RAM needed was not
available. It is important because there could be adverse effects on a Mac's performance as the
system tried to make use of virtual RAM (swap space on an SSD or hard drive).
Apple provided a tool called the Activity Monitor that could monitor how a Mac's RAM was
being used. While the Activity Monitor is still available, its memory monitoring capabilities
have undergone a dramatic change, one that mimics the way a Mac is now able to better make
use of RAM through the use of compressed memory. (Apple Inc., 2015)
Level 1
2015
CT049-3-1
Page 8 of 31
Level 1
2015
CT049-3-1
Page 9 of 31
Level 1
2015
CT049-3-1
Page 10 of 31
Level 1
2015
CT049-3-1
Page 11 of 31
In figure 3 depicts that 15.99GB out of 16GB of RAM in use, and yet Mavericks still keeps its
cool, holding the line at 0 bytes of swap. Then in figure 4 shows that OS Mavericks with a
heroic 8.54GB of compressed memory, finally dipping its toe into a few megabytes of swap.
(Siracusa, 2013)
Level 1
2015
CT049-3-1
Page 12 of 31
Level 1
2015
CT049-3-1
Page 13 of 31
Level 1
2015
CT049-3-1
Page 14 of 31
Level 1
2015
CT049-3-1
Page 15 of 31
Level 1
2015
CT049-3-1
Page 16 of 31
Level 1
2015
CT049-3-1
Page 17 of 31
Types of registers
Number of registers vary computer to computer, depends on the CPU the user has. The number
of registers that the CPU has, and the size of register measured by the number of bits help
determine the power and the speed of the CPU. For example, a 64 bit CPU is a CPU where
each single register is 64 bits in size. Therefore, each instruction carried out by the CPU is able
to have a maximum of 64 bits of data. This means that the workspace of the CPU is able to
accommodate a unit measurement of 64 bits of data for calculation before it sends it back to
the RAM.
Following are the types of registers:
a. Data Registers
Data registers can hold numeric values such as integer and in some architectures floatingpoint values, characters, small bit arrays and other data.
b. Address Registers
Address registers hold addresses and are used by instructions that indirectly access primary
memory. Some processors contain registers that may only be used to hold an address or
only to hold numeric values.
c. General Purpose Registers
The general purpose registers are used a simple storage area, mainly these are used to store
immediate results of operations. Getting the operand from the GPR is faster than from
memory so its better to have sufficient number of general purpose registers in the CPU.
(Robin, 2013)
Accumulator
This is one of the general purpose registers but it is specifically used to accumulate the result
of the currently running instructions. Its a register for short-term, intermediate storage of
arithmetic and logic data in a computer's CPU. Without a register like an accumulator, it
would be necessary to write the result of each calculation to main memory, perhaps only to
be read right back again for use in the next operation. (redOrbit, n.d.)
Level 1
2015
CT049-3-1
Page 18 of 31
Level 1
2015
CT049-3-1
Page 19 of 31
Level 1
2015
CT049-3-1
Page 20 of 31
Size of registers
8-bit register
Its not possible to have an 8-bit register, but its possible to break the register down to 8-bit.
In x86 you can address the High and Low halves of a 16-bit register as 8-bit register.
In modern computers, information is stored in registers that are often made up of is 16-bit or
32-bit registers. Therefore its possible to code information into strings of 0's and 1's and these
strings can be stored in Flip-Flops. For example the number 18 can be expressed in eight binary
digits as 0 0 0 1 0 0 1 0 and can be loaded into an 8-bit register as can be seen in Figure 6
Short
int
long
Pointers
IP16L32 (near)
16
16
32
16
I16LP32 (far)
16
16
32
32
Level 1
2015
CT049-3-1
Page 21 of 31
32 bit registers
A 32-bit refers to the number of bits that can be processed or transmitted in parallel, or the
number of bits used for single element in a data format. The term when used in conjunction
with a microprocessor indicates the width of the registers; a special high-speed storage area
within the CPU. A 32-bit microprocessor can process data and memory addresses that are
represented by 32 bits.
A 32 bit processor can split larger numbers out onto more than one register although it is slower
than performing operations on a single 32 bit register. For addition/subtraction it simply
performs arithmetic starting from the least significant register and then carries the status bits
over to the next significant register. It can get a bit more complex with multiplication/division
but the main downside is performance.
64 bit register
A 64-bit therefore refers to a processor with registers that store 64-bit numbers. A
generalization would be to suggest that 64-bit architecture would double the amount of data a
CPU can process per clock cycle. Users would note a performance increase because a 64-bit
CPU can handle more memory and larger files. One of the most attractive features of 64-bit
processors is the amount of memory the system can support. 64-bit architecture will allow
systems to address up to 1 terabyte (1000GB) of memory. (UK Essays, 2013)
Level 1
2015
CT049-3-1
Page 22 of 31
Organization in registers
Below is the discussion of the register organization of 16-bit microprocessor.
Level 1
2015
CT049-3-1
Page 23 of 31
Level 1
2015
CT049-3-1
Page 24 of 31
Conclusion
In conclusion, Memory Management is one of the most important parts of the Operating
System. This is because Memory management is the heart of operating systems and it is playing
an important role in storing and transporting data and information. There are different types of
memory management which each of it doing a specific work. Moreover, Mac OS X by Apple
is one of the best and famous company because it is free and easy to use.
A part from that, registers in computer architecture is another important part, which also have
an important role in storing information. There are many types of register also such as Memory
address, Memory data and Memory buffer register, which each of it is doing important work
computer architecture.
Level 1
2015
CT049-3-1
Page 25 of 31
References
Anon.,
2015.
Apple
OS
History.
[Online]
Available
at:
[Accessed
April
2015].
Harris, R., 2013. Mavericks memory compression review. [Online] Available at:
http://www.zdnet.com/article/mavericks-memory-compression-review/ [Accessed 4 April
2015].
Janalta Interactive Inc., 2010-2015. Computer Architecture. [Online] Available at:
http://www.techopedia.com/definition/26757/computer-architecture [Accessed 30 March
2015].
Kessler, T., 2013. Memory compression brings RAM Doubler to OS X Mavericks. [Online]
Available at: http://www.cnet.com/news/memory-compression-brings-ram-doubler-to-os-xmavericks/ [Accessed 6 April 2015].
Kishore, A., 2014. Understanding Memory Pressure in OS X Mavericks. [Online] Available
at:
https://www.switchingtomac.com/tutorials/osx/understanding-memory-pressure-in-os-x-
Level 1
2015
CT049-3-1
Page 26 of 31
n.d.
Accumulator
(computing).
[Online]
Available
at:
2013.
World
of
Computing.
[Online]
Available
at:
M.,
2012.
memory
management.
[Online]
Available
at:
n.d.
SMU
UNOFFICIAL
BETA.
[Online]
Available
at:
http://smu.covertbay.com/bt0068-4
Teach-ICT.com,
n.d.
Registers.
[Online]
Available
at:
http://www.teach-
ict.com/as_as_computing/ocr/H447/F453/3_3_3/vonn_neuman/miniweb/pg4.htm [Accessed
6 May 2015].
UK Essays, 2013. Registers In Modern Computers Information Technology. [Online]
Available at: http://www.uniassignment.com/essay-samples/information-technology/registersin-modern-computers-information-technology-essay.php [Accessed 8 May 2015].
UK Essays, 2013. Study On Registers In A Modern Computer Information Technology.
[Online] Available at: http://www.ukessays.com/essays/information-technology/study-onregisters-in-a-modern-computer-information-technology-essay.php#ixzz3bevttr8q [Accessed
1 May 2015].
UK
Essays,
2013.
Uni
Assignment.
[Online]
Available
at:
Level 1
2015
CT049-3-1
Page 27 of 31
Appendix
Frequently Asked Questions
Section 1: Operating Systems
1. What is operating systems?
Operating system (OS) is a collection of software that manages computer hardware or
enables the computer hardware to communicate and operate with the computer software and
supports a computer's basic functions, such as scheduling tasks, executing applications, and
controlling peripherals.
2. What is memory management?
Memory management is the process of controlling and coordinating computer memory,
assigning portions called blocks to various running programs to optimize overall system
performance.
3. What components that are involve in hardware memory management?
RAM (random access memory) chips, memory caches, and flash-based SSDs (solid-state
drives)
4. What process involved on OS memory management?
Allocation and constant reallocation of specific memory blocks to individual programs as
user demands change
5. What is Activity Tool?
A tool that could monitor how a Mac's RAM was being used.
6. Why is memory compression used in Mac OS?
Memory compression on the Mac is designed to increase OS and app performance by
allowing better management of RAM resources, and greatly reduce the use of virtual
memory, which is the paging of data to and from a Mac's drive.
Level 1
2015
CT049-3-1
Page 28 of 31
Level 1
2015
CT049-3-1
Page 29 of 31
Level 1
2015
CT049-3-1
Page 30 of 31
10. What happens when there is power cut in a standard CPU register?
When there is a sudden power cut, then the data stored in the registers will be lost.
Level 1
2015
CT049-3-1
Page 31 of 31
Gantt Chart
Level 1
2015