Transactional I/O

This is a discussion on Transactional I/O within the Tech Board forums, part of the Community Boards category; I've been looking on line but haven't found any text that describes transactional I/O. Can someone provide me with a ...

  1. #1
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271

    Transactional I/O

    I've been looking on line but haven't found any text that describes transactional I/O. Can someone provide me with a brief example or point me in the direction of an explanation/example please?

    Thanks.
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,581
    A transaction is a "unit" of processing that can be made up of several different operations. It is a unit, because all operations that make it must succeed for the transaction to be successful. Otherwise -- if at least one of the operations fail -- the whole transaction fails. It is thus said the transaction is an atomic unit of processing.

    So, Transactional IO will probably describe Input and Output operations that are done through transactions. There's heaps of examples I could give you... maybe this one:

    If you have a stock management application and a sales application when you input a new sale of a Summer Laced Straw Hat - Red, you will want to reduce the stock of this item in your stocks. Both the sale operation and the stock reduction may go into a transaction, insuring that if one of the operations fail, none will succeed.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Buffered/UnBuffered I/O
    By valaris in forum C Programming
    Replies: 1
    Last Post: 08-07-2008, 12:31 AM
  2. asynchronized I/O == multiplexing I/O?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 07-24-2006, 11:06 AM
  3. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 08:42 AM
  4. Nonblocking I/O
    By fnoyan in forum Linux Programming
    Replies: 4
    Last Post: 11-29-2005, 04:37 PM
  5. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21