473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Jul 22 '05 #1
2 2109
On 5 Apr 2004 19:46:07 -0700, df*******@yahoo.com.au (Dave) wrote in
comp.lang.c++:
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


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
Jul 22 '05 #2
On 5 Apr 2004 19:46:07 -0700, df*******@yahoo.com.au (Dave) wrote in
comp.lang.c++:
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


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
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: adsheehan | last post by:
Hi, I am embedding Python into a multi-threaded application running on Solaris. Python will enable end users to customize and re-program many aspects of the application. I expect that the C++...
0
by: Ganbold | last post by:
Hi, I'm new to multi-threaded programming and reading the book "Programming with POSIX Threads" and trying to understand concepts and coding. What I'm trying to do is to rewrite mysql client...
2
by: Michal Przytulski | last post by:
Hi, I'm looking information abouth runing PHP CLI application in multi-threaded - on http://www.php.net/manual/pl/ref.pcntl.php i found information abouth process control - but is PHP support...
5
by: Rob Durant | last post by:
Hi, I have a multi-threaded application (have also tried as service - same behaviour) that runs fine on XP, but not on 2003. Symptoms are: Threads are started normally, locks acquired and...
1
by: Mullin Yu | last post by:
As subject. I have lots of VB6 dll and ocx files and they are single-threaded as VB6 doesn't support multi-threaded indeed. Can I wrap anything at .NET so that multi-threaded feature can be...
9
by: Stu | last post by:
Hi, I have a web service that does database access and calculations However it keeps falling over becuase its not multi threaded and each call to it is not in its own space!! I dont want to use...
5
by: Macca | last post by:
Hi, I have a multithreaded app which now needs database storage. I am in the process of designing my Data Access Layer but and was wondering what issues I should look for for in regards to a...
2
by: robin.chauhan | last post by:
I'm stuck while trying to make this C++ app multi-threaded! Any advice would be appreciated. Basically I have a very big graph data structure in memory. And I want to run an algorithm on it,...
3
by: D. Patrick | last post by:
I need to guide the training for some good ASP.NET programmers who don't have Windows Forms experience, and they will soon be put onto a project for multi-threaded winforms development. Can...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.