Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Advocacy > Re: What happen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 10 Topic 2408 of 2475
Post > Topic >>

Re: What happened to Double Buffering?

by Tim Smith <reply_in_group@[EMAIL PROTECTED] > Jun 26, 2008 at 03:01 AM

In article <520u5497nbencs0oagpr8chc4sbial8ast@[EMAIL PROTECTED]
>,
 Roedy Green <see_website@[EMAIL PROTECTED]
> wrote:
> Today, when we have RAM coming out our ears we have reverted back to
> SINGLE buffering.  We alternate between processing and waiting for I/O
> on the same buffer.
> 
> What is the matter with us? It is as though we imagine we still have a
> single threaded DOS OS.

Nothing is the matter with us.  CPUs got faster.  That's what it sounds 
like you are seeing.

Let's say there are two buffers, so while the application is processing 
one, the I/O system is filling the other.  Your timeline would then be 
something like this:

   I/O System                    Application
   ----------                    -----------
                                 Request data, wait for response
   start filling buffer #1       ...
   ...                           ...
   ...                           ...
   ...                           ...
   ...                           ...
   ...                           ...
   ...                           ...
   ...                           ...
   finish filling buffer #1      ...
   give buffer #1 to app         ...
   start filling buffer #2       start processing buffer #1
   ...                           finish processing buffer #1
   ...                           update progress bar
   ...                           request data, wait for response
   ...                           ...
   ...                           ...
   ...                           ...
   ...                           ...
   finish filling buffer #2      ...
   give buffer #2 to app         ...
   start filling buffer #1       start processing buffer #2
   ...                           finish processing buffer #2
   ...                           update progress bar
   ...                           request data, wait for response
   ...                           ...
   ...                           ...
   ...                           ...
   ...                           ...
   finish filling buffer #1      ...
   give buffer #1 to app         ...
   start filling buffer #2       start processing buffer #1
   
The app pauses because the app can consume data much faster than the 
disk can provide it.

-- 
--Tim Smith
 




 10 Posts in Topic:
What happened to Double Buffering?
Roedy Green <see_websi  2008-06-23 01:54:08 
Re: What happened to Double Buffering?
Daniel Pitts <newsgrou  2008-06-22 21:50:13 
Re: What happened to Double Buffering?
Roedy Green <see_websi  2008-06-24 09:15:06 
Re: What happened to Double Buffering?
Roedy Green <see_websi  2008-06-24 09:53:25 
Re: What happened to Double Buffering?
The Ghost In The Machine   2008-06-24 11:30:45 
Re: What happened to Double Buffering?
Lew <lew@[EMAIL PROTEC  2008-06-26 08:07:21 
Re: What happened to Double Buffering?
Roedy Green <see_websi  2008-07-01 02:39:05 
Re: What happened to Double Buffering?
The Ghost In The Machine   2008-07-01 14:00:00 
Re: What happened to Double Buffering?
Daniel Pitts <newsgrou  2008-06-24 13:04:34 
Re: What happened to Double Buffering?
Tim Smith <reply_in_gr  2008-06-26 03:01:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:41:36 CST 2008.