Synchronous and Asynchronous I/O
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Synchronous and Asynchronous I/O

  1. #1
    Join Date
    Sep 2002
    Posts
    376

    Synchronous and Asynchronous I/O

    hi,
    What is the difference between Synchronous and Asynchronous I/O....
    I read soome books...but couldn't understand propely. Can somebody explain the same with some simple example.

    thanx

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    if a process requests that the O/S write data to disk, and has to wait for it to be written before continuing, then that is synchronous. If the process does not have to wait for the write to be completed, that is asynchronous
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    Synchronous is real-time, that is you ask to perform steps A,B,C, step B is done only after step A is completed, and C is done only when B is completed.

    In Asynchronous, neither step B waits for A to complete, nor step C waits for B to complete.
    Agasimani
    OCP(10g/9i/8i/8)

  4. #4
    Join Date
    Sep 2002
    Posts
    376
    hi
    thanx for ur reply...

    In case of asynchronous I/O if there is an error in writing to a block, then how this is taken care of

    and again asynchronous i/o will be very fast i believe....is there any disadvantage with asynchronous I/O.

    regards

  5. #5
    With AIO enabled , sometimes you hit bugs, like AIO on aix jfs, and AIO on tru64 advfs.
    www.cnoug.org

  6. #6
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Originally posted by chao_ping
    With AIO enabled , sometimes you hit bugs, like AIO on aix jfs, and AIO on tru64 advfs.
    To add something about Solaris and HP UX. On Solaris, AIO is the default, on HP UX not: if you want to implement it, you will have to rebuild the kernel.
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

  7. #7
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    In case of asynchronous I/O if there is an error in writing to a block, then how this is taken care of

    This is the reason there are events called wait events.
    Agasimani
    OCP(10g/9i/8i/8)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width