• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 297,  comments - 15,  trackbacks - 0

            V6:::::::::

            1.3 What is the main advantage of multiprogramming?
            Answer: Multiprogramming makes efficient use of the CPU by overlapping the demands for the CPU and its I/O devices from various users. It attempts to increase CPU utilization by always having something for the CPU to execute.

            1.5 In a multiprogramming and time-sharing environment, several users share the system simultaneously. This situation can result in various security problems.
            a. What are two such problems?
            b. Can we ensure the same degree of security in a time-shared machine as we have in a
            dedicated machine? Explain your answer.
            Answer:
            a. Stealing or copying one’s programs or data; using system resources (CPU, memory, disk space, peripherals) without proper accounting.
            b. Probably not, since any protection scheme devised by humans can inevitably be broken by a human, and the more complex the scheme, the more difficult it is to feel
            confident of its correct implementation.

            1.9 Describe the differences between symmetric and asymmetric multiprocessing. What are three advantages and one disadvantage of multiprocessor systems?
            Answer: Symmetric multiprocessing treats all processors as equals, and I/O can be processed on any CPU. Asymmetric multiprocessing has one master CPU and the remainder CPUs are slaves. The master distributes tasks among the slaves, and I/O is usually done by themaster only. Multiprocessors can savemoney by not duplicating power supplies, housings, and peripherals. They can execute programs more quickly and can have increased reliability. They are also more complex in both hardware and software than uniprocessor systems.

            1.10 What is the main difficulty that a programmer must overcome in writing an operating system for a real-time environment?
            Answer: The main difficulty is keeping the operating system within the fixed time constraints of a real-time system. If the system does not complete a task in a certain time
            frame, it may cause a breakdown of the entire system it is running. Therefore when writing an operating system for a real-time system, the writer must be sure that his scheduling schemes don’t allow response time to exceed the time constraint.
             
            2.1 Prefetching is a method of overlapping the I/O of a job with that job’s own computation.
            The idea is simple. After a read operation completes and the job is about to start operating on the data, the input device is instructed to begin the next read immediately. The CPU and input device are then both busy. With luck, by the time the job is ready for the next data item, the input device will have finished reading that data item. The CPU can then begin processing the newly read data, while the input device starts to read the following data.
            A similar idea can be used for output. In this case, the job creates data that are put into a buffer until an output device can accept them. Compare the prefetching scheme with the spooling scheme, where the CPU overlaps the input of one job with the computation and output of other jobs.
            Answer: Prefetching is a user-based activity, while spooling is a system-based activity.
            Spooling is a much more effective way of overlapping I/O and CPU operations.

            2.3 What are the differences between a trap and an interrupt? What is the use of each function?
               An interrupt is a hardware-generated change-of-flow within the system. An interrupt handler is summoned to deal with the cause of the interrupt; control is then re-turned to the interrupted context and instruction. 
               A trap is a software-generated interrupt.
               An interrupt can be used to signal the completion of an I/O to obviate the need for device polling. 
               A trap can be used to call operating system routines or to catch arithmetic errors.

            V7::::::::

            19.3 The Linux 2.6 kernel can be built with no virtual memory system. Explain how this feature may appeal to designers of real-time systems.
            Answer: By disabling the virtual memory system, processes are guaranteed to have portions of its address space resident in physical memory.
            This results in a system that does not suffer from page faults and therefore does not have to deal with unanticipated costs corresponding to paging the address space.
             The resulting system is appealing to designers of real-time systems who prefer to avoid variability in performance.




            posted on 2009-03-15 13:20 chatler 閱讀(308) 評論(0)  編輯 收藏 引用 所屬分類: OS
            <2025年5月>
            27282930123
            45678910
            11121314151617
            18192021222324
            25262728293031
            1234567

            常用鏈接

            留言簿(10)

            隨筆分類(307)

            隨筆檔案(297)

            algorithm

            Books_Free_Online

            C++

            database

            Linux

            Linux shell

            linux socket

            misce

            • cloudward
            • 感覺這個博客還是不錯,雖然做的東西和我不大相關,覺得看看還是有好處的

            network

            OSS

            • Google Android
            • Android is a software stack for mobile devices that includes an operating system, middleware and key applications. This early look at the Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
            • os161 file list

            overall

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久久久亚洲AV无码专区桃色| 久久久久人妻精品一区| 国产高清美女一级a毛片久久w | 亚洲va久久久久| 亚洲中文字幕无码一久久区| 久久久久亚洲AV无码麻豆| 国产欧美久久一区二区| 亚洲国产成人精品女人久久久 | 97精品依人久久久大香线蕉97 | 午夜精品久久久久成人| 久久人人爽人人爽人人AV东京热| 精品国产乱码久久久久久郑州公司| 免费精品99久久国产综合精品| 欧美精品丝袜久久久中文字幕 | 免费国产99久久久香蕉| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 久久精品女人天堂AV麻| 欧洲成人午夜精品无码区久久| 国产成人精品久久一区二区三区av| 麻豆精品久久久久久久99蜜桃 | 久久精品人人做人人爽电影蜜月| 久久久91人妻无码精品蜜桃HD | 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 色综合久久中文字幕综合网| MM131亚洲国产美女久久| 亚洲午夜久久久| 国内精品久久久久久久涩爱| 国产精品久久久久久| 亚洲va久久久噜噜噜久久男同| 无码人妻久久一区二区三区蜜桃| 99久久免费只有精品国产| 久久国产高潮流白浆免费观看| 久久精品国产精品亚洲精品| 精品人妻伦九区久久AAA片69| 99久久99这里只有免费费精品| 国产精品久久久久久久久软件| 久久嫩草影院免费看夜色| 久久久久亚洲av成人无码电影| 久久不见久久见免费影院www日本| 国内精品久久久久影院免费| 久久se精品一区精品二区|