C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 18th, 2005, 01:13 AM
I5R+ I5R+ is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 I5R+ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 26 sec
Reputation Power: 0
circular buffer

i have a buffer that i like to write to and read from at the same time so that no data gets lost.
could you give an example of such scenario?.

Reply With Quote
  #2  
Old March 18th, 2005, 10:34 AM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 273 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 35 m 2 sec
Reputation Power: 4
such scenario is possible for infinite and bounded buffer of finite length,such that production of data > consumption of data.

In synchronization problems, you can have your read and write operations work simulataneously.

Or if RW operations are in serialized form.

Reply With Quote
  #3  
Old March 18th, 2005, 01:43 PM
I5R+ I5R+ is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 I5R+ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 26 sec
Reputation Power: 0
any example code to cover each case if it is not too much to ask?.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > circular buffer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway