Мордовский государственный университет им. Н.П.Огарева
Светотехнический университет
Кафедра светотехники
Отчет по лабораторной работе №2
по курсу "ОФОС"
Выполнил: студент 3205 гр
Завырылин Д.О.
Проверил: Ивлиев С.Н.
Саранск 2010
Теоретическая часть
Необходимо отличать понятия программы и процесса. Программа представляет собой статический набор команд, а процесс — это контейнер для набора ресурсов, используемых при выполнении экземпляра программы. На самом высоком уровне абстракции процесс в Windows включает следующее:
закрытое виртуальное адресное пространство — диапазон адресов виртуальной памяти, которым может пользоваться процесс;
исполняемую программу — начальный код и данные, проецируемые на виртуальное адресное пространство процесса;
список открытых описателей (handles) различных системных ресурсов — семафоров, коммуникационных портов, файлов и других объектов, доступных всем потокам в данном процессе;
контекст защиты (security context), называемый маркером доступа (access token) и идентифицирующий пользователя, группы безопасности и привилегии, сопоставленные с процессом;
уникальный идентификатор процесса (во внутрисистемной терминологии называемый идентификатором клиента);
минимум один поток.
Каждый процесс также указывает на свой родительский процесс (процесс-создатель). Однако, если родитель существует, эта информация не обновляется. Поэтому есть вероятность, что некий процесс указывает на уже несуществующего родителя. Это не создает никакой проблемы, поскольку никто не полагается на наличие такой информации. Поток (thread) — некая сущность внутри процесса, получающая процессорное время для выполнения. Без потока программа процесса не может выполняться.
Поток включает следующие наиболее важные элементы:
содержимое набора регистров процессора, отражающих состояние процессора;
два стека, один из которых используется потоком при выполнении в режиме ядра, а другой — в пользовательском режиме;
закрытую область памяти, называемую локальной памятью потока (thread-local storage, TLS) и используемую подсистемами, библиотеками исполняющих систем (runtime libraries) и DLL;
уникальный идентификатор потока (во внутрисистемной терминологии также называемый идентификатором клиента: идентификаторы процессов и потоков генерируются из одного пространства имен и никогда не перекрываются);
иногда потоки обладают своим контекстом защиты, который обычно используется многопоточными серверными приложениями, подменяющими контекст защиты обслуживаемых клиентов.
Переменные регистры, стеки и локальные области памяти называются контекстом потока. Поскольку эта информация различна на каждой аппаратной платформе, на которой может работать Windows, соответствующая.
Практические задания
Задание 1. Просмотр состояния процессов через диспетчер задач.
Просмотр и анализ взаимосвязей процессов и потоков.
Согласно первому заданию, я запустил диспетчер задач. Переключился на закладку Процессы. В меню Вид выбрал пункт Выбрать столбцы… и указал столбцы согласно (См.Рисунок 1).
Рисунок 1. Выбор столбцов диспетчера задач
Потом определил сколько процессов запущено системой. Для этого я перешел на закладку Быстродействие и в меню Вид выбрал пункт Загрузка ЦП. (см. рис.2) Из рисунка мы видим что системой запущено 53 процесса, загрузка ЦП колеблется от 3-5%, файл подкачки загружен на 931 МБ.
Рисунок 2. Диспетчер задач. Вкладка "Быстродействие"
Теперь запускаю приложение Paint. Загрузка ЦП колеблется в пределах 1-4%, файл подкачки загрузился на 942 МБ. Если сравнить объёмы используемого файла подкачки и доступной физической памяти, то можно сделать вывод что в сумме они дают общий объем физической памяти. (см. рис.3).
Рисунок 3. Результат после запуска приложения Paint
Просмотр времени работы системы в пользовательском режиме и режиме ядра
Согласно следующему заданию я переключился на закладку Быстродействие и в меню Вид выбрал пункт Вывод времени ядра (см. Рисунок 4).
Быстро прокручивал страницы просмотра настоящего описания. На индикаторе Загрузка ЦП процент работы процессора в пользовательском режиме отражается зеленым цветом, в режиме ядра красным. Из рисунка четко видны изменения работы процессора при прокрутке страниц.
Рисунок 4. Состояние системы при прокрутке страниц
Задание 2. Просмотр сведений о поддержке многопроцессорных систем.
Согласно следующему заданию я открыл диспетчер устройств. В списке устройств раскрыл узел Компьютер. В окне свойств перешел на закладку Драйвер и с помощью кнопки Сведения просмотрел сведения о файлах драйверов (см. Рисунок 5).
Рисунок 5. Сведения о файлах поддержки многопроцессорных систем
Задание 3. Просмотр дерева процессов с помощью средства Tlist из набора Debugging Tools for Windows (x86).
В диалоговом окне Выполнить я набрал команду cmd (См. Рисунок 6), после чего у меня запустилось окно командной строки.
Рисунок 6. Запуск окна командной строки
1. В командной строке я ввел команду для поиска средств отладки:
Path c:program filesDebugging Tools for Windows (x86).
2. Далее введите команду tlist –t получите листинг процессов.
Задание 5. Изучение отношения процессов родитель-потомок.
1. Согласно заданиюя открыл окно командной строки.
2. Потомнабрал start cmd для запуска второго окна командной строки.
Рисунок 7. Запуск окон командной строки
3. Далее яоткрыл диспетчер задач.
4.Переключился на второе окно командной строки.
5.Ввелmspaint длязапуска Microsoft Paint.
Рисунок 8. Запуск приложения Paint
6. Потом я выбрал второе окно командной строки.
7. Ввел команду exit. тем самым завершив работу второго окна.
8. Потом переключился в диспетчер задач. Открыл его вкладку Приложения. Щелкнул правой кнопкой мыши задачу Командная строка (cmd.exe) и выбрал Перейти к процессам.
Рисунок 9. Диспетчер задач. Переход к процессу cmd.exe
11. Щелкните процесс Cmd.exe, выделенный серым цветом.
12. Щелкнув правой кнопкой мыши, выберите команду Завершить дерево процессов.
13. В окне Предупреждение диспетчера задач щелкните кнопку Да.
Рисунок 10. Диспетчер задач. Переход к процессу cmd.exe
Первое окно командной строки исчезнет, но окно Paint по прежнему работает.
Задание 4. Определение взаимосвязей системного потока и драйвера устройств.
Для просмотра процессов внутри системы и связанных с ними потоков воспользуемся утилитой Process Explorer. После загрузки утилиты в окне я выбрал системный процесс System (См. Рисунок 11) и открыл свойства процесса, дважды щелкнув по строке System.
Рисунок 11. Основное окно Process Explorer
Потом перешел на закладку Threads (потоки). (См.Рисунок 12)
Рисунок 12. Просмотр потоков процесса
В данной вкладке можно просмотреть параметры потоков, нажав кнопку Module. Информация о выбранном драйвере отражается на закладках Общие (См. Рисунок 13.)
Рисунок 13. Свойства драйвера ntdll.dll
Таким образом можно описать назначение каждого процесса, вызываемого системным процессом System. А также можно изучить свойства всех системных host-процессов и сделать выводы в интересах каких сервисов запущен каждый host-процесс.
Другие работы по теме:
The Parasite Trichinella And Its Control Of
Host Muscle Essay, Research Paper The parasite Trichinella and its control of host muscle Trichinella is a very important intracellular parasite. James Pagent first discovered Trichinella in humans in 1875 during a medical study. There are five species of Trichinella. Medically the most important is Trichinella spiralis.
Telemakhos Essay Research Paper Early in the
Telemakhos Essay, Research Paper Early in the Odyssey we see Telemakhos as a rash, untrained boy. He clearly is not Odysseus’ equal as a host, leader, or fighter. However, as the book goes on we see Telemakhos become more and more like his father, in every respect as he is taught and guided by some of the best examples he could have, Athena, Nestor, and Menelaos.
Tapeworm Essay Research Paper Tapeworm
Tapeworm Essay, Research Paper Tapeworm There are many different parasitic worms that people need to worry about. Tapeworm is one of them. This is a fairly familiar worm but there are many more interesting facts to be learned about the tapeworm.The tapeworm belongs to the phylum Platyhelminthes and the class Cestoda.
Sir Gawian And The Green Knight Essay
, Research Paper In the Epic poem, Sir Gawain and the Green Knight, the unnamed author uses Sir Gawain to illustrate the heroic ideals of chivalry, loyalty and honesty in fourteenth century England. The poem depicts the society of King Arthur and the Knights of the Round Table. In the poem, Gawain is the ideal of virtue and all that is good.
Sunrise On The Veldt Order Essay Research
Paper Sunrise on the Veldt: Order Order is sought instinctively. In Literature, as well as Biology, order is sought instinctively by authors and scientists. Authors use order to convey
Art Work Essay Research Paper Don
Art Work Essay, Research Paper Don’t exist exactly definition for a work of art. Work of art is something made by a person. Hence sunsets beautiful trees, ”found” natural objects such as grained driftwood, “painting” by insects or birds and a host of other natural phenomena are not considered works of art, despite their beauty.
Honor 2
Honor “The Definition In The Past Vs The Definition Now” Essay, Research Paper As time progresses many changes occur in human life. Society, our way of transportation, language, and our way of survival. I you read a lot you probably notice that words that are in older books tend to have a different meaning that today.
The Tests Of Sir Gawain Essay Research
Paper The tale Sir Gawain and the Green Knight is a lively amusing tale that captivates the reader with colorful detail of adventurous challenges that Sir Gawain must overcome to remain an honorable Knight in the eyes of King Arthur,his relations,and peers. Most of all he must be able to offer a favorable account to himself free of dishonor in his own eyes remaining true to himself.
Chaplin Essay Research Paper Chaplins New GemMordaunt
Chaplin Essay, Research Paper Chaplin?s New Gem Mordaunt Hall, a reporter from the New York Times, refers to Charlie Chaplin as a ?Great host of spectators.? In his review of Chaplin?s new film, ?The Gold Rush?. Not even the scorching heat could keep the public from seeing this spectacular flick. New Yorkers swarmed to the theatres to view the new film.
Canterburry Tales
– Pardoner Essay, Research Paper The Pardoner The Pardoner comes from Rome singing with his friend and partner in crime the Summoner. The Pardoner has waxy yellow hair, which he hung sleekly. He is a clean shaven man. He spread out with what little hair he had, thinly over his shoulders. He rode in a new style of fashion without wearing a hood but only bearing a cap.
Yahoo Case Essay Research Paper The case
Yahoo Case Essay, Research Paper The case of three anti-racism associations versus Yahoo! Inc. and its French subsidiary Yahoo! France (about the sell of Nazis objects on a website hosted by Yahoo) raises the question of the consequences of globalisation of information on freedom of expression. It thus transcends current debate on the responsibility of Internet technical service providers for the content of the sites they host.
Men What Are We Essay Research Paper
Men, what are we? Men, is described as a mammal, a vertebrates. Rabbit, cow, are also mammals but they follow a rule. They exist with the ecosystem in a unique balance, food web that is determined from producers to 1st order consumer, to 2nd . 1st orders being the herbivore like rabbit. 2nd the predators, fox.
Planning A Dinner Party Essay Research Paper
At one time or another in our lives we will all host some sort of informal dinner party. While for many people, spur of the moment entertaining may be fine, others find it easier to plan the details of a party well in advance. It is actually quite simple to do so. In order to host an informal dinner party, you have to select the menu, set the table, and serve the food.
None Essay Research Paper host granting access
None Essay, Research Paper host, granting access rights to anyone using the guest computer, carry out the following procedure. NOTE: The following procedure is just one of many that could be used
Symbology In Sir Gawain And The Green
Knight Essay, Research Paper Sir Gawain and the Green Knight Symbology “Trimmed with gold, it was green silk, embroidered with stones, but only at the edges” (Anonymous SGGK, 1832). The beautiful green belt, which Gawain received from the Host’s wife, represents Gawain’s weakness. One of the “rules” of the Round Table was to show no fear, which Gawain did exceptionally well.
American Dream Essay Research Paper nameAP EnglishMrs
American Dream Essay, Research Paper name A.P. English Mrs. Smith Gatsby Essay The Great Gatsby The Characters in the book are static characters because everything that happens to them does not affect how they act on any permanent basis. Gatsby’s personality never changes from his smug, rich, party host for more than a hour or two.
The Disease State Of Chlamydia Essay Research
Paper A parasite is defined as an organism that lives in or on another organism, called a host (2). If the parasite has the capacity to cause disease in the host then the parasite is called a pathogen. Disease in the host is caused by the infection of the parasite. The interaction between the host and parasite is complex.
Hot Zone Essay Research Paper Nature s
Hot Zone Essay, Research Paper Nature s Wrath Nature is our host and we are the parasite. In the book, The Hot Zone, Mr. Preston has explained one of the most feared things known to mankind, the virus. Even though as small as a needle head, it can kill humans faster than any weapon ever made. The actual virus itself, the host, and the organizations that spent years trying to figure out a cure are all examples shown in both The Hot Zone and the film, Outbreak.
Virii Essay Research Paper Viruses are
Virii Essay, Research Paper Viruses are not truly alive. They are much smaller and less complex than cells. Most viruses multiply exclusively inside living host cells. Viruses
Viruses Essay Research Paper Why are Viruses
Viruses Essay, Research Paper Why are Viruses considered an exception to the Cell Theory? Viruses are prolific. They have been found in almost all parts of the Earth, including the Arctic. They infect nearly every form of life from the simplest unicellular organism (bacteria) to complex mammals, such as humans.
The Odyssey Essay Research Paper The Odyssey
The Odyssey Essay, Research Paper The Odyssey Report In The Odyssey , Homer uses guest-host relationships as an ethical norm against which behavior is measured. When the ritual is preformed correctly by guest-host, good results ensue. In contrast, the violations of this ethical norm results in misfortune.
Japanese Tea Ceremony Essay Research Paper Japanese
Japanese Tea Ceremony Essay, Research Paper Japanese Tea Ceremony Tea was first introduced to Japan along with Buddhism from China in the 6th century, but the Emperor Shomu introduced tea drinking to the country. During the Heian period (794-1185), tea was made from steamed and dried tea leaves ground into a powder called macha.
Common Eileen Essay Research Paper Wordsworth begins
Common Eileen Essay, Research Paper Wordsworth begins his extended metaphor in the third line of the poem, with his speaker saying, ?I saw a crowd, / a host, of golden daffodils? that were ?fluttering and dancing in the breeze.? (line 6). The speaker is attributing to these daffodils human qualities: their forming a crowd, and their dancing.
Viral Infections Essay Research Paper VIRAL INFECTIONS
Viral Infections Essay, Research Paper VIRAL INFECTIONS: THE TRUE WHYS AND WHAT NOWS It all started with a little tickling in my throat. I forged ahead, knowing all too well what that feeling meant, I was getting sick. I convinced myself to just not think about it and it would just go away. This whole time there was an army of alien species amassing in my bloodstream and older cells.
The Cause Of Being Unhappy Essay Research
Paper People sometimes become unhappy. Although I spend pleasant time with my host family and friends, I also have something that makes angry, disappoint, and sad. There are three major causes which make people unhappy; the violation of their privacy, failure, and sickness.
Viruses Complex Molecules Or Simple Life Forms
? Essay, Research Paper Viruses: Complex Molecules or Simple Life Forms? Viruses have been defined as “entities whose genomes are elements of nucleic acid that replicate inside living cells using the cellular synthetic
Odyssey
“Hospitality” Essay, Research Paper Hospitality In The Odyssey by Homer, hospitality plays a very important role. There are certain rules of hospitality needed, such as inviting a stranger into
Cpu Internal Organisations Essay Research Paper CPU
Cpu Internal Organisations Essay, Research Paper CPU Internal Organisations The input/output (I/O) interface, bus structures, microprocessor, memories and peripherals (also known as external or I/O devices) are the major components of a computer system. These components constantly trade information and instructions to complete assigned operations.
Computer Tech Essay Research Paper Common Network
Computer Tech Essay, Research Paper Common Network Architectures There are many different types of networks used today that could be evaluated. I would like to take a brief look at three main types of networks, the host-based network, the client-based network, and the client-server network. I would like to look at both the advantages and disadvantages of each type.