Whats the difference between unix and windows

Discussion in 'Software Q&A' started by iMav, Jul 7, 2007.

Thread Status:
Not open for further replies.
  1. iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    Well after my first compilation which got a very good response and my second article which got a luke warm response and the on going OS war on this forum i was compelled to research again so here i am again compiling another article from the internet tryin to understand a very complicated topic in simple terms....

    like always in this article also attempts to make it as laymen possible have been made ....

    also i may be not absolutely accurate at some places which can be corrected

    Whats the difference between unix and windows

    The difference is at the core and the way the core functions thereby everything that follows also behaves differently

    The core of an OS is known as Kernel:

    *The Computer system consists of 5 abstraction levels which are:

    [​IMG]

    the kernel does this:

    [​IMG]

    The UNIX system kernel

    1. The kernel allocates memory, keeps track of the physical location of files on the computer's hard disks, loads and executes binary programs such as shells, and schedules the task swapping without which UNIX systems would be incapable of doing more than one thing at a time.
    2. The kernel accomplishes all these tasks by providing an interface between the other programs running under its control and the physical hardware of the computer; this interface, effectively insulates the other programs on the UNIX system from the complexities of the computer.

    For example:


    When a running program needs access to a file, it cannot simply open the file; instead it issues a system call which asks the kernel to open the file. The kernel takes over and handles the request, then notifies the program whether the request succeeded or failed. To read data in from the file takes another system call; the kernel determines whether or not the request is valid, and if it is, the kernel reads the required block of data and passes it back to the program.

    The kernel has subsystems like process management, memory management, file management, device management and network management. Each of the subsystem has some features:

    * Concurrency: As UNIX is a multiprocessing OS, many processes run concurrently to improve the performance of the system.

    * Virtual Memory (VM): Memory management subsystem implements the virtual memory concept and a user need not worry about the executable program size and the RAM size.

    * Paging: It is a technique to minimize the internal as well as the external fragmentation in the physical memory.

    * Virtual File System (VFS): A VFS is a file system used to help the user to hide the different file systems complexities. A user can use the same standard file system related calls to access different file systems.

    The kernel provides these and other basic services: interrupt and trap handling, separation between user and system space, system calls, scheduling, timer and clock handling, file descriptor management.

    Now something about the Windows Kernel:

    Windows Kernel Organization

    Kernel-mode organized into:

    NTOS (kernel-mode services)
    – Run-time Library, Scheduling, Executive services, object
    manager, services for I/O, memory, processes, …
    Hal (hardware-adaptation layer)
    – Insulates NTOS & drivers from hardware dependencies
    – Providers facilities, such as device access, timers, interrupt
    servicing, clocks, spinlocks
    Drivers
    – kernel extensions (primarily for device access)

    [​IMG]
    The Windows NT operating system family's architecture

    Major Kernel Services:

    *Process management:
    Process/thread creation

    *Security reference monitor:
    Access checks, token management

    *Memory manager:
    Pagefaults, virtual address, physical frame, and pagefile management;
    Services for sharing, copy-on-write, mapped files, GC support, large apps

    *Lightweight Procedure Call (LPC):
    Native transport for RPC and user-mode system services.

    *I/O manager (& plug-and-play & power)
    Maps user requests into IRP requests, configures/manages I/O devices;
    implements services for drivers

    *Cache manager:
    Provides file-based caching for buffer file system I/O
    Built over the memory manager

    *Scheduler:
    Schedules thread execution on each processor

    Now thats a little too much of geeky stuff and its got me scratching my head too .... dont worry now we cut directly to the chase ...

    Another difference between UNIX and Windows:

    1. Everything in UNIX is treated as file (even the h/w devices like printers, scanners etc!) but it is not the case in Windows, also:

    2.
    i could partly understand the above :|

    3. Unix posseses the process hierarchy. When a new process is created by a UNIX application, it becomes a child of the process that created it. This hierarchy is very important, so there are system calls for influencing child processes. Windows processes on the other hand do not share a hierarchical relationship. Receiving the process handle and ID of the process it created, the creating process of a Windows system can maintain or simulate a hierarchical relationship if it is needed. The Windows operating system ordinarily treats all processes as belonging to the same generation.

    4. UNIX uses daemons, Windows has service processes. Daemons are processes that are started when UNIX boots up that provide services to other applications. Daemons typically do not interact with users. A Windows service is the equivalent to a UNIX daemon. When a Windows system is booted, a service may be started. This is a long running application that does not interact with users, so they do not have a user interface. Services continue running during a logon session and they are controlled by the Windows Service Control Manager.

    I have some things that i want to cover but that require a little more research and time 8)

    Source: The Internet ;)

    PS: just a little something i found: http://en.wikipedia.org/wiki/List_of_Linux_computer_viruses
     
  2. saurabh kakkar

    saurabh kakkar D i s t i n c t l y Ahead

    Joined:
    Sep 1, 2006
    Messages:
    495
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    New delhi
    all i know is Linux is better thats Y it is used in most of the SERVER SYSTEMS

    good effort by the way
     
  3. gaurav_indian

    gaurav_indian CG Artist

    Joined:
    May 5, 2006
    Messages:
    1,455
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    New Delhi,India
    Wohi difference jo scooter aur bike mein hota hai.:p Unix has better protection i guess.
     
  4. OP
    iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    in of the articles i read the author said that most people only know that unix is more secure than windows thats it nothing more than that and i was also in that category so decided to sniff around a bit ....
     
  5. gaurav_indian

    gaurav_indian CG Artist

    Joined:
    May 5, 2006
    Messages:
    1,455
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    New Delhi,India
    Also i have heard that windows are more user friendly than Unix.Havent used unix so cant tell about that.
     
  6. OP
    iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    well user friendly yes ... windows are more easy and user friendly than unix
     
  7. infra_red_dude

    infra_red_dude Wire muncher!

    Joined:
    Nov 5, 2003
    Messages:
    6,156
    Likes Received:
    5
    Trophy Points:
    0
    thats a good compilation imav :) interesting read for people who dunno abt os internals :)
     
  8. OP
    iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    thank u, i myself learnt quite a bit, it was a good break from the 8051 working :D
     
  9. adithyagenius

    adithyagenius I WANT MORE FPS!!

    Joined:
    Aug 9, 2004
    Messages:
    494
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Shifted to Hydreabad from Mumbai
    you forgot the shell
     
  10. saurabh kakkar

    saurabh kakkar D i s t i n c t l y Ahead

    Joined:
    Sep 1, 2006
    Messages:
    495
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    New delhi
    ha ha good one buddy
     
  11. OP
    iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
  12. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    Good work @manan.

    U can use BSDs, solaris etc. U can use PC-BSD. May be m wrong here, but AFAIK it is aimed for desktop users!
     
  13. OP
    iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    thanx infra & mediator
     
  14. praka123

    praka123 left this forum longback

    Joined:
    Sep 7, 2005
    Messages:
    7,513
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    -
    one thing is :I think Windows gui shell OS's developed from MS-DOS.in earlier windows it is DOS which is the core and gui works over it.but with later windows versions,the importance of DOS went low and Windows became a complete gui shell.although a dos cli is available.
    so a good comparison will be with UNIX and DOS .for gui, *bsd vs windows.
    and Linux or Minix are not UNIX,but a UNIX-like system nearly posix compliant.
    Guide to Unix/Why Unix-like
     
  15. nileshgr

    nileshgr New Member

    Joined:
    Nov 8, 2006
    Messages:
    1,747
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Pune, Maharashtra, India
    Read This: www.windowsitpro.com/linuxfaq

    Linux/Unix is much secure than Windows. Now Linux has become much user-friendly than the previous one. For each task we have a GUI tool. Linux is light on CPUs so it is easy to do multitasking on old CPUs too.
     
  16. gxsaurav

    gxsaurav You gave been GXified

    Joined:
    Jan 16, 2007
    Messages:
    5,610
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    New Delhi
    Sometimes I think *NIX is too secure to be user friendly.
     
  17. OP
    iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    well this is a difference not a competition ;) i first differentiated between the mac and a pc and now this article is for all those unlike mr. drm to understand what is the difference between the 2 OS ;)

    we all know u have 9999999999999999999 links on linux, the thread is not for the linux user who knows more than every 1 else, u can add to the info by urself rather than giving links,

    the article is meant for people who want to understand linux and windows and like me are not from computers branch and know what they do by reading various sites
     
  18. praka123

    praka123 left this forum longback

    Joined:
    Sep 7, 2005
    Messages:
    7,513
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    -
    neither i want a flame war here again :p,and u tagged wrong,may be anti-drm can be :lol:
     
  19. Desi-Tek.com

    Desi-Tek.com New Member

    Joined:
    Oct 15, 2006
    Messages:
    370
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Mumbai
    operating systestem concept was in my this semester and i learned a lot from it.
    what makes linux kernel better than windows kernel is the way it do memory management and scheduling .
     
    Last edited: Jul 8, 2007
  20. gaurav_indian

    gaurav_indian CG Artist

    Joined:
    May 5, 2006
    Messages:
    1,455
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    New Delhi,India
    ^^ You forgot Process management.:p
     
Thread Status:
Not open for further replies.

Share This Page