Khamis, 17 Mac 2011

INPUT AND OUTPUT MANAGEMENT

INPUT & OUTPUT MANAGEMENT

• Managing input & output in Windows XP involves many operating system componets.

• User-mode processes interact with an enviroment subsystem and not directly with kernel-mode componets.

• The enviroment subsystem pass input & output request to the input & output manager,which interacts with devices drivers to handle such request.

• Sereval device drivers,organized into a driver stack,cooperate to fulfill an input & output request.

• The plug and play manager dynamicaly recognizes when new devices are added to the system and allocates and deallocates resources,such as input & output ports or DMA channels, to them.

• The power manger administers the operating system’s power mangement policy.

• The power policy detemines whether to power down devices to conserve energy or keep them fully powered for high responsiveness.


Elaborate the concept of buffering


• Buffer overflow weakness is one of the many disadvantages of this type of security computer

• Buffer overflow attacks occur when the excessive Attacker provide input on the plan on the run

• Buffee overflow results from the weakness of the programming language c, c + +, fortran, and assembly, which does not automatically check the limit input when the program is executed

• The program is so complex, sehinnga programmers themselves do not know the weaknesses of the program

• Relies on external data to control the program

• Buffer is provided at the memory allocation, such as arrays or pointers in C. in the language C and C + +, there is no automatic restrictions on buffernya, where users can write through the input buffer. For example:

int main () {

int buffer [10];

buffer [20] = 10;

}

• Program in C above is a valid program, and each compiler to compile without error

• A process is a program in execution.

 Recognize spooling technique

• In computer science, spooling refers to a process of transferring data by placing it in a temporary working area where another program may access it for processing at a later point in time.

• The normal English verb "spool" can refer to the action of a storage device that incorporates a physical spool or reel, such as a tape drive.

• Spooling refers to copying files in parallel with other work.

• The most common use is in reading files used by a job into or writing them from a buffer on a magnetic tape or a disk.

• Spooling is useful because devices access data at different rates. The buffer provides a waiting station where data can rest while the slower device catches up.

• This temporary working area would normally be a file or storage device.

• The most common spooling application is print spooling: documents formatted for printing are stored onto a buffer (usually an area on a disk) by a fast processor and retrieved and printed by a relatively slower printer at its own rate.

• Spooler or print management software may allow priorities to be assigned to jobs, notify users when they have printed, distribute jobs among several printers, allow stationery to be changed or select it automatically, generate banner pages to identify and separate print jobs, etc.

• The temporary storage area to which E-mail is delivered by a Mail Transfer Agent and in which it waits to be picked up by a Mail User Agent is sometimes called a mail spool


MEMORY MANAGEMENT CONCEPT

Relocatin policy
·         In systems with virtual memory, programs in memory must be able to reside in different parts of the memory at different times. This is because when the program is swapped back into memory after being swapped out for a while it can not always be placed in the same location. The virtual memory management unit must also deal with concurrency. Memory management in the operating system should therefore be able to relocate programs in memory and handle memory references and addresses in the code of the program so that they always point to the right location in memory.

Location of Outdoor System:
-         The allocator places a process in the smallest block of unallocated memory in which it will fit.

-         The memory manager places process in the largest block of unallocated memory available. The ides is that this placement will create the largest hole after the allocations, thus increasing the possibility that, compared to best fit, another process can use the hole created as a result of external fragmentation.



First Fit:
-         Another strategy is first fit, which simply scans the free list until a large enough hole is found. Despite the name, first-fit is generally better than best-fit because it leads to less fragmentation.
-         The first fit approach tends to fragment the blocks near the beginning of the list without considering blocks further down the list. Next fit is a variant of the first-fit strategy.The problem of small holes accumulating is solved with next fit algorithm, which starts each search where the last one left off, wrapping around to the beginning when the end of the list is reached (a form of one-way elevator).

Explain relocation of paging system.
Paging permits a program to be allocated noncontiguous blocks of memory. We divide programs into pages which are blocks of small, fixed size. We then divide the physical memory into frames which are blocks of size equal to page size. We use a page-table to map program pages to memory frames.

Rabu, 16 Februari 2011

INPUT & OUTPUT MANAGEMENT


• Managing input & output in Windows XP involves many operating system componets.

• User-mode processes interact with an enviroment subsystem and not directly with kernel-mode componets.

• The enviroment subsystem pass input & output request to the input & output manager,which interacts with devices drivers to handle such request.

• Sereval device drivers,organized into a driver stack,cooperate to fulfill an input & output request.

• The plug and play manager dynamicaly recognizes when new devices are added to the system and allocates and deallocates resources,such as input & output ports or DMA channels, to them.

• The power manger administers the operating system’s power mangement policy.

• The power policy detemines whether to power down devices to conserve energy or keep them fully powered for high responsiveness.


5.3 Elaborate the concept of buffering


• Buffer overflow weakness is one of the many disadvantages of this type of security computer

• Buffer overflow attacks occur when the excessive Attacker provide input on the plan on the run

• Buffee overflow results from the weakness of the programming language c, c + +, fortran, and assembly, which does not automatically check the limit input when the program is executed

• The program is so complex, sehinnga programmers themselves do not know the weaknesses of the program

• Relies on external data to control the program

• Buffer is provided at the memory allocation, such as arrays or pointers in C. in the language C and C + +, there is no automatic restrictions on buffernya, where users can write through the input buffer. For example:

int main () {

int buffer [10];

buffer [20] = 10;

}

• Program in C above is a valid program, and each compiler to compile without error

• A process is a program in execution.

























5.4 Recognize spooling technique

• In computer science, spooling refers to a process of transferring data by placing it in a temporary working area where another program may access it for processing at a later point in time.

• The normal English verb "spool" can refer to the action of a storage device that incorporates a physical spool or reel, such as a tape drive.



• Spooling refers to copying files in parallel with other work.

• The most common use is in reading files used by a job into or writing them from a buffer on a magnetic tape or a disk.

• Spooling is useful because devices access data at different rates. The buffer provides a waiting station where data can rest while the slower device catches up.



• This temporary working area would normally be a file or storage device.

• The most common spooling application is print spooling: documents formatted for printing are stored onto a buffer (usually an area on a disk) by a fast processor and retrieved and printed by a relatively slower printer at its own rate.

• Spooler or print management software may allow priorities to be assigned to jobs, notify users when they have printed, distribute jobs among several printers, allow stationery to be changed or select it automatically, generate banner pages to identify and separate print jobs, etc.

• The temporary storage area to which E-mail is delivered by a Mail Transfer Agent and in which it waits to be picked up by a Mail User Agent is sometimes called a mail spool

5.1 Explain on input-output management

• In economics, an input-output model uses a matrix representation of a nation's (or a region's) economy to predict the effect of changes in one industry on others and by consumers, government, and foreign suppliers on the economy

• Input-output depicts inter-industry relations of an economy. It shows how the output of one industry is an input to each other industry

• most uses of the input-output analysis focuses on the matrix set of interindustry exchanges, the actual focus of the analysis from the perspective of most national statistical agencies, which produce the tables, is the benchmarking of gross domestic product

• The mathematics of input-output economics is straightforward, but the data requirements are enormous because the expenditures and revenues of each branch of economic activity have to be represented

Ahad, 19 Disember 2010

hidup ku sudah x bermakna......

hidup aku dh x bermakna sbb owg yg aku syg sudah pergi meninggal kan...aku x salah kan die tp aku salah kan diri aku sendri...ermmm,x pe aku akan doa kan kebahagiaan die ngan owg die yang pilih sbg teman hidup die kelak...aku berharap die dapat pempuan yg lebih baik dri aku yg boleh bahagia akan die dan family die...aku terima dengan hati yang terbuka kerana aku yakin yang hubungan aku dengan die x akan kekal lama sebab aku memang x sesuai untuk jadi kekasih die....

Selasa, 26 Oktober 2010

hidup ku sdh bahagia skrg nie....

kehidupan aku skrg nie bahagia sngt sbb hbgn aku ngan hubby aku dh ok....ermmm,hrp smua nye ok utk selama lama nye....amin....bercinta nie kadang2 happy tp kadang2 2 ade gak x happy.....

Khamis, 7 Oktober 2010

benci pada insan bernama LELAKI!!!!!!

lbh baik x pyh cuple langsung......benci nye....dh la lps nie x pyh dh nk cuple lngsng....aku dh x cye pada lelaki dh.....benci sngt2........knp la kaum lelaki ska sngt wat aku skt ati......benci!!!!!!!!!

Jumaat, 3 September 2010

rindu ku pada seseorang....

x tau la tiba2 je aku rindu pada prg 2 tp die bkn kekasih aku...smlm my hubby sebut nama die masa ktowang ngah msj...fikiran aku melayang kenangan aku ngan die....emmmm die 2 sihat ke skrg nie...agak nye ape lah yg die wat skrg nie ye...mesti die dh mula lupa kan aku...tp aku x kisah pun n tiba2 plak aku rasa bersalah kat die pasal kejadian ari 2...