Connecting Tech Pros Worldwide Help | Site Map

g++ multi threaded advice.

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 22nd, 2005, 09:00 AM
Dave
Guest
 
Posts: n/a
Default g++ multi threaded advice.

Hi.

I am new to theads and I wanted some advice on my client/server
program on Linux.

I want to create a CD database with this functionality.

1. Multiple client requests for the same CD don't require a trip to
the database for the same CD. ie 3 requests for "ZZ Tops" = 1 DB read.
By storing it in memory.

2. A process that changes the price for the "ZZ Tops" cd notifies the
client requests that the data has changed and another DB read is
required.

So I thought of this.
A multi-thread app with 2 public variables 1 called Request_Status
(either OK or DB Read required) the other called CD id Number. So both
process 1 and process 2 can communicate with each other.

Sound ok?

Thanks

  #2  
Old July 22nd, 2005, 09:00 AM
Jack Klein
Guest
 
Posts: n/a
Default Re: g++ multi threaded advice.

On 5 Apr 2004 19:46:07 -0700, dfbrownau@yahoo.com.au (Dave) wrote in
comp.lang.c++:
[color=blue]
> Hi.
>
> I am new to theads and I wanted some advice on my client/server
> program on Linux.
>
> I want to create a CD database with this functionality.
>
> 1. Multiple client requests for the same CD don't require a trip to
> the database for the same CD. ie 3 requests for "ZZ Tops" = 1 DB read.
> By storing it in memory.
>
> 2. A process that changes the price for the "ZZ Tops" cd notifies the
> client requests that the data has changed and another DB read is
> required.
>
> So I thought of this.
> A multi-thread app with 2 public variables 1 called Request_Status
> (either OK or DB Read required) the other called CD id Number. So both
> process 1 and process 2 can communicate with each other.
>
> Sound ok?
>
> Thanks[/color]

The topic of this newsgroup is the standard C++ language, which does
not define or support any sort of threads. You want to ask this in
news:comp.os.linux.development.apps.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
  #3  
Old July 22nd, 2005, 09:00 AM
Jack Klein
Guest
 
Posts: n/a
Default Re: g++ multi threaded advice.

On 5 Apr 2004 19:46:07 -0700, dfbrownau@yahoo.com.au (Dave) wrote in
comp.lang.c++:
[color=blue]
> Hi.
>
> I am new to theads and I wanted some advice on my client/server
> program on Linux.
>
> I want to create a CD database with this functionality.
>
> 1. Multiple client requests for the same CD don't require a trip to
> the database for the same CD. ie 3 requests for "ZZ Tops" = 1 DB read.
> By storing it in memory.
>
> 2. A process that changes the price for the "ZZ Tops" cd notifies the
> client requests that the data has changed and another DB read is
> required.
>
> So I thought of this.
> A multi-thread app with 2 public variables 1 called Request_Status
> (either OK or DB Read required) the other called CD id Number. So both
> process 1 and process 2 can communicate with each other.
>
> Sound ok?
>
> Thanks[/color]

The topic of this newsgroup is the standard C++ language, which does
not define or support any sort of threads. You want to ask this in
news:comp.os.linux.development.apps.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.