Free Essay

Busisness

In:

Submitted By carline
Words 960
Pages 4
Operating Systems Concepts

Contents Introduction 3

Virtual Memory 3

First In First Out 4

Least Recently Used 5

References 6

Introduction
As we gain a better understanding of how computers and their operating systems work, we are able to better grasp how they handle the execution of programs. As we first learn to use computers we really do not think about the things that programs need in order to run, such as memory, as long as everything works. Although as we advance our knowledge of how such things operate, we begin to understand the mechanics of such things as physical and virtual memory.
Virtual Memory Normally when we think of memory, in terms of computers, we generally tend to think about things like the hard drive or the RAM. These items are generally used in the storage of programs, documents and multimedia, however when it comes to running a program their functions are slightly altered. Programs that are executed to run on a computer require a certain amount of memory in order to run. As modern operating systems have become capable of running multiple processes, or programs, with limited resources of memory, operating systems need a way to manage these resources. This is referred to as memory management, which allocates the memory resources as they are needed. When a memory manager has the capability to allocate the memory resources to multiple programs this is known as virtual memory. Virtual memory is a technique that is used to give the illusion of addition memory when a system is low on physical memory, the manager would divide the available space into pages and then stores its contents in mass storage. When paging is used, the processor divides the linear address space into fixed-size pages that can be mapped into physical memory and/or disk storage. When a program or task references a logical address in memory, the processor translates the address into a linear address and then uses its paging mechanism to translate the linear address into a corresponding physical address. Windows is known to use paging where Linux, Mac OS X, Solaris and Amiga OS 4 uses file swap. The process is, swapping which is the moving of memory pages between RAM and disk. By default Windows OS configuration, 2 GB of this virtual address space are designated for each process’ private use and the other 2 GB are shared between all processes and the operating system.
As an example of this I have found a program that emulates the process that memory management goes through when it allocates memory to a program. Once you press start, there are roughly 8 processes that are taking turns in requesting the use of the systems memory resources. All of the processes start out as light blue, once the programs start the ones that begin to request resources turn dark blue. There are also 16 pages of virtual memory along with 8 pages of primary memory.
The virtual memory is yellow while the primary memory starts out as white, as they are currently empty. Once a process request resources it will randomly chooses a page, as the virtual memory is brought into primary memory. If a process request a page that is already in use the process goes from green to yellow, indicating that its contents have been changed and that the original contents have been saved before the page is used by another program. This is an excellent example of what the memory manager does to maintain computers resources, for multiple programs.
First In First Out
First in first out, or FIFO, it allows for a process keeps running on a CPU until it is blocked or terminated. The main advantage of the FIFO policy is simplicity, as the oldest pages are always replaced. The FIFO also provides a certain degree of fairness, since requests are served in order. However, the main disadvantage is that short jobs can get stuck behind long running jobs. As well as the fact that the pages which are being deleted does not mean that it is not in use, as pages that are accessed more frequently may be replaced. Constantly doing this could be considered bad judgment.
Least Recently Used
Least recently used, or LRU, replaces the page which has been unused for the longest time, as well as the primary memory that has gone the longest time used. LRU maintains a linked list of all pages ordered from the most recently used to the least recently used. Maintaining a list on every instruction execution is very expensive and time consuming.
In relation to the last two methods discussed, I have found a simulation that best emulates these methods. It simulates 16 pages of virtual memory along with 8 pages of primary memory, I then inputted a sample set of numbers and then set it to sample string. Once I pressed start the LRU and FIFO went through the string of numbers, as they did they proceeded to go through the number of page faults, number of page references and percentage of page faults. The number of page faults went from one to eight, as the numbers went up the page references and fault numbers increased as well. As a clicked on fast and slow the number of reference pages steadily increased, as the percentage of page faults fluctuated wildly between numbers. This is caused by the fact that as the number of page faults and references increases the percentage of fault or dropped pages changes as some go unused or was in service for long periods of time.

References
William Stallings 6th Edition, Operating Systems internals and Design Principles, Chapter 7 and 8
Page replacement algorithm information retrieved from http://en.wikipedia.org/wiki/Page_replacement_algorithm

Similar Documents

Free Essay

Busisness Analytics

...Unit 4    [GB513: Business Analytics]    Assignment This assignment requires you to use Excel. There is no template for this assignment. Make sure you explain your answers and provide the regression output tables for questions 1 and 2. Question 1 Shown below are rental and leasing revenue figures for office machinery and equipment in the United States over a seven-year period according to the U.S. Census Bureau. Use these data to run a linear regression and then forecast the rental and leasing revenue for the year 2012. Year Rental and Leasing ($ millions) 2004 5,860 2005 6,632 2006 7,125 2007 6,000 2008 4,380 2009 3,326 2010 2,642 Question 2 Suppose a researcher gathered survey data from 19 employees and asked the employees to rate their job satisfaction on a scale from 0 to 100 (with 100 being perfectly satisfied). Suppose the following data represent the results of this survey. Assume that relationship with supervisor is rated on a scale from 0 to 50 (0 represents poor relationship and 50 represents an excellent relationship), overall quality of the work environment is rated on a scale from 0 to 100 (0 represents poor work environment and 100 rep resents an excellent work environment), and opportunities for advancement is rated on a scale from 0 to 50 (0 represents no opportunities and 50 represents excellent opportunities). Answer the following questions: A) What is the regression formula? B) How reliable do you think the estimates will be based on this formula? How...

Words: 709 - Pages: 3

Premium Essay

Intro to Busisness

...Which economic system is best suited for handling a crisis of epic proportions (hurricane, flood, blizzard, forest fire, etc.)? Why? A socialist system is the best economic system to handle emergency situations. First, let’s understand what a socialist society is. “A socialism society is where the state owns certain productive resources. The government manages efforts to minimize dramatic differences between economic classes, and opportunities are given to entrepreneurs, with varying degree of restrictions.” “It lies somewhere between communism and capitalism, with a fairly high degree of government planning and some government ownership of capital resources.” (Bovee) “All individuals have access to basic articles of consumption and public goods to allow for self-actualization. Large-scale industries are collective efforts and thus the returns from these industries must benefit society as a whole.” [http://www.diffen.com/difference/Capitalism_vs_Socialism] A socialist system can help a country concentrate efforts and resources to an emergency. One of the most important disaster response strategies of a socialist society is to mobilize the entire country to help disaster areas. They can launch a general mobilization and send soldiers to the disaster area shortly after an emergency. The government will help everyone equally. In addition to government efforts, individuals and organizations can provide assistance to the affected area. They can send use their own resources...

Words: 510 - Pages: 3

Premium Essay

Gender in Busisness

...| Final Paper | BMGT 312 Gender in Business | | Antoinette | 12/14/2012 | | A friend of mine was promoted to a managerial position. He assumed the position from a woman of foreign background that allowed her representatives(both male and female) to skip pass their immediate supervisors and come directly to her with any office or personal problems, from office grievances to attendance issues. Instead of “six degrees of separation” she also would invite these employees over for dinner and drinks. This relationship has continued on to her new position, whereas, whenever the representatives are in disagreement with his style of management they tend to confront her with it to insure that their wants/needs are addressed accordingly. Although he and the former manager are on amicable terms, he had to assert himself to his subordinates to make them understand his position and his policies. Communication Hearing Robert talk about the issues he was having with the staff, I reminded him to remember when he encountered a new boss who was trying to make a name for himself and how their initial reactions were - probably don’t bother me with trivial issues - and you felt that you were not getting anywhere, so you revert back to what/who you know. Communicating to your staff with what your expectations are and what’s acceptable and what’s not is one step to correcting the problem. He needed to communicate to his assistant manager’s to what their roles are and how to...

Words: 2002 - Pages: 9

Premium Essay

Busisness Management

...Management vs Leadership The article I chose came from www.forbes.com and is entitled “Leader or Manager, what does your small business need?” by Marc Compeau (see link at the bottom). The article discusses the constant debate of what is better for a business; a manager or a leader? The book defines a manager as “planning, organizing, leading, and controlling of human and other resources to achieve organizational goals efficiently and effectively” (P.5). The book described leading as being able to “motivate. Coordinate, and energize individuals and groups to work together to achieve organizational goals” (P.8). In the definition the book states that to manage you must lead. Compeau states “I do know that your business has different needs at different times.” I personally believe that you need to be able to do both obviously, but it is not about wearing two hats, it is about knowing when to wear which hat! This is an extremely rare combination very few can achieve. Compeau offered his own distinction between the two; Leadership is managing change, Management is leading stability. You cannot just manage, managing keeps everything the same and nothing is moving or growing. Leading is changing and moving forward. This is why having a strong “managing leader” would help a business to strive. Compeau also discusses employees needing direction. The book states that “Leadership revolves around encouraging all employees to perform at a high level to help the organization achieve...

Words: 391 - Pages: 2

Free Essay

Business Plan

...Business plan Smith Warehouse Las Catalinas Mall P. O. Box 362 Caguas, Puerto Rico 00726-0362 Telephone (787) 555-7755 Fax (787) 555-7756 E-Mail SmithWarehouse@gmail.com Table of Contents I. Table of Contents 2 II. Executive Summary 3 III. General Company Description 4 IV. Products and Services 5 V. Marketing Analysis 7 VI. Operational Plan 8 VII. Busisness Risk and Options 11 Executive Summary Thanks to the development of the web and its incremental use, Smith Warehouse has decided to create an online supermarket with delivery. “No waiting in line, no wasting of time”. Our business allows you to compare prices across the largest Grocery and Health & Beauty products in the PR. Visit our website; you're guaranteed to find the best prices, all the offers and the best value. General Company Description www.SmithWarehouse.com is a shopping website will serve as guide for the best offers and best buys for food prices. It will allow you to compare the value and prices of your entire cart, comparing with others retailers in the PR. It automatically checks what's in your basket and recommends swapping items for ones of better valued products. You can choose from five different departments: * Grocery * Produce * Dairy * Health & Beauty * Wines & Beers How much can you save? You can save up to 35% on the total of your shopping’s.   Ways to Save * Personal Shopping Companion Bar - Get the best value for your cart...

Words: 2272 - Pages: 10

Free Essay

Management

...Critically analyses why a business can fail during the early stages of operation in a context you are familiar with. Bakr and Ellis(1987) There is no generally accepted definition of business failure,but from the economic approach,it can be defined as firm earning a rate on return on investment which is less than the company’s opportunity cost. Starting the new business at the beginning of stage is the most difficult period. There are no guarantee that the business is going to success or fail in the future, it all about how the owner of the business to handle the situation, catching the change in market,beating the competitor and making profit year over year.There are also thousands of new born business suffering from the failure period which lead to the company go burst and lose everything. The new born business can manly divide into two parts,the first one would be the Internal factors such as,financial problem,difficultly of getting trust from the suppliers, cost problem, management problem etc. The second one would be external factor,such as the business environment,government measures,taxation etc. So it is very important to know what exactly makes the difference between the succeed and a failed company and how the Entrepreneur is going to handle the situation to avoid the company go bankrupt and gain some experience form the failed examples to avoid the same situation happen when setting up the business during the first stages. There are also some positive and negative...

Words: 2512 - Pages: 11

Free Essay

Successfully Enterpreneure

...Executive Summary Everyone is ignorant, only on different subjects. To learn is to acquire knowledge or skill. Learning also may involve a change in attitude. Learning is not just a change in attitude; it is a change in the way a man thinks, understands, or feels. Learning some things depends on other perceptions which have preceded these learning’s, and on the availability of time to sense and relate these new things to the earlier perceptions. Thus, sequence and time are necessary. After studying the theoretical aspect of a subject matter, understanding its practical implications is one of the prime steps of learning. Our assignment is on history of legendary and successful Entrepreneur, which is fully in the organizational context. During the process of preparing this assignment, we could enrich our knowledge about many aspects of the Entrepreneurial Management that we have explored with the light of our limited knowledge. The most successful men in the end are those whose success is the result of steady acceleration. Therefore, we have chosen Sir Fazle Hasan Abed - a living legendary leader, organizer, risk taker and an innovator who has cosmopolitan acceptance to complete our assignment. His life history as a successful entrepreneur inspired us to take extra interest and effort to know about him and we have become more resourceful on this living legend. SIR FAZLE HASAN ABED - A SUCCESSFUL ENTREPRENEUR Born 1936 (age 74–75) Baniachong, British India (now...

Words: 3977 - Pages: 16

Premium Essay

Sme Towards Implementation of Gst

...The Acceptance and Awareness of Small and Medium Enterprises towards Implementation of GST in Kuala Lumpur and Johor Bahru CHAPTER ONE – INTRODUCTION 1.1 Background of the Study The production of a good or service, in general, goes through several stages before the final product or service reaches the consumer. To illustrate, if the production and distribution process is divided into three basic stages of manufacturing, wholesaling and retailing, value is added at each stage through further processing, packing or other improvements before it reaches the consumer via the retailer. The GST is a tax on the value added to the output or service at each stage of the process. In its generic form, the GST is a value-added tax (VAT). These terms are used interchangeably in this note. A multi-stage tax like the GST protects tax collections through two built-in features. First, the multi-point collection and invoice trail minimizes tax avoidance and tax evasion. This is because the need to issue and obtain invoices to claim tax deductions for taxes imbedded in inputs from a previous stage of the production chain fosters greater compliance. Second, the GST is better able to protect revenue from tax evasion by retailers as compared to a single-stage sales tax imposed solely at the retail sales tax (RST). This feature, however, comes with greater administrative and compliance costs. 1.2 Problem...

Words: 5991 - Pages: 24