tic toc


I made this widget at MyFlashFetish.com.


SEB070007- Amali 4  

Friday, August 29, 2008

microsoft

differencesS

unix/linux

a page file is allocated on disk, does not used the memory mostly. leaving more RAM for actively used

when an object is needed, it can be brought back into the memory.

placed the file on seperate partition and Windows will remember it.

unfortunately, this slows down the I/O due to the sleek time involved in switching back and forth between the two partition.






Memory Management

use a swap partition where the disk space allocated for paging is seperate from general data.

this reduces the slowdown of the I/O.

Linux uses a Least Recently Used (LRU) page aging technique to fairly choose pages which might be removed from the system.

This scheme involves every page in the system having an age which changes as the page is accessed. The more that a page is accessed, the younger it is; the less that it is accessed the older and more stale it becomes. Old pages are good candidates for swapping.

Windows uses structured exception handling to report page fault-based invalid accesses as access violation exceptions

recent versions of Windows often report such problems with less technical error messages simply stating something along the lines of "this program must close" (an experienced user or programmer with access to debugger can still retrieve detailed information, if necessary). Additionally, recent Windows versions also write a minidump (similar in principle to acore dump) describing the state of the crashed process for later analysis alongside such less-technical error messages













Page Faults

UNIX (and UNIX-like) systems typically using signals,such as SIGSEGV, to report these error conditions to programs.

UNIX and UNIX-like operating systems typically report these conditions to the user with error messages such as "segmentation violation", or "bus error"

The page file in XP is a hidden file called pagefile.sys. It is regenerated at each boot — there is no need to include it in a backup. To see it you need to have Folder Options View set to ‘Show Hidden and System files’, and not to ‘Hide Protected mode System files’.




Page Sizes

The size of the block of pages examined is higher if the kernel swap daemon is intensively swapping; that is if the number of free pages in the system has fallen dangerously low. The blocks of pages are examined in a cyclical manner; a different block of pages is examined each time an attempt is made to shrink the memory map. This is known as the clock algorithm as, rather like the minute hand of a clock, the whole mem_map page vector is examined a few pages at a time.

Trashing a file, if possible, is an atomic, constant time operation that will never error out due to out-of-space or other issue. Even trashing large files is instant, which is important because the user
don't expect trashing to be a costly operations, especially considering that most trash operations are never undone.

The out-of-space handling is importang, because it solves the "trashing files to make space on a full disk" problem that you have if you copy files to the trash.






Trashing

On non-unix system you see this strange .Trash-user directory

On unix system the trash dir is hidden, and its not obvious that the media is not empty, because the connection with the files in
the trash location is not very explicit, or even logical.

reference:

http://lists.freedesktop.org/archives/xdg/2004-August/002923.html http://en.wikipedia.org/wiki/Comparison_of_Windows_and_Linux

AddThis Social Bookmark Button


SEB070007-Tutorial 3  

Tuesday, August 5, 2008

  1. system that controls all the programs installed in a computer.It provides user-interface between users and the computer itself.
  2. It provides support for loading and execution of other application programs.
  3. It has system tools that monitor the computer performance, debug problems or maintain parts of the sytem.
  4. An operating system is like a resource manager. It contorls how processes to access resources.
  5. It protects applications from each other but yet share physical resources between them.
  6. It provides virtual machine such as virtual processor and share CPU.
  7. It also allocate and protect memory, enable virtual memory operations for application programs.
  8. It manages files by using filling system and divide up storage space.
  9. It organizes and control hardware and software so that it operates in predictable way.
  10. It manages the networking within the computer.
  11. It transforms the the physical world of devices, instructions, memory, and time into virtual world.
  12. It ensure the applications continue to run when the hardware updates and upgrades occur.
  13. It provides a consistent application interface, especially important if there is more than one of a particular type of computer using the operating system.
  14. The operating system provides a virtual proccessor to provide the illusion that a computer is doing more than one thing at a time.
  15. It provides device driver to that perform operations on behalf of programs for example input/output operations.
  16. It introduces new functions as it abstracts the hardware. As an example, it introduces file abstraction so that programs do not have to deal with discs.
  17. It can protects the system by controlling access to programs.
  18. It responsible towards secondary-storage management such as free-space management, disc scheduling and storage allocation.
  19. It keep tracks which part of memory are being used, allocate/deallocate memory space as required.
  20. It deals with hardware specific driver for devices and keep it all hidden from the rest of the system.

20 CORE FUNCTIONS OF OPERATING SYSTEM

AddThis Social Bookmark Button


 

Design by Amanda @ Blogger Buster