473,398 Members | 2,165 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,398 software developers and data experts.

Use huge parts of RAM

Hello,
The problem is to acquire image data and process them in
parallel on a Windows 2000 system.

So I am thinking of two threads. First thread is puting
all the image data into a std::queue and a second thread
is reading out the image data and is processing them.

Processing the data might be much slower than acquiring
it, that is why the memory consumption can possibly grow
up to 1.5 GByte worst case.

Will i'm facing problem with that solution?
Can OS provide that if i have physicly 2 GByte RAM.

(sorry for beeing slightly off topic, if s.o. think so pls.
recomment an other newsgroup)

bernd

Jul 22 '05 #1
2 1216
"info" <in**@fotometrie.de> wrote...
The problem is to acquire image data and process them in
parallel on a Windows 2000 system.

So I am thinking of two threads. First thread is puting
all the image data into a std::queue and a second thread
is reading out the image data and is processing them.

Processing the data might be much slower than acquiring
it, that is why the memory consumption can possibly grow
up to 1.5 GByte worst case.

Will i'm facing problem with that solution?
Can OS provide that if i have physicly 2 GByte RAM.

(sorry for beeing slightly off topic, if s.o. think so pls.
recomment an other newsgroup)


comp.os.ms-windows.programmer.win32.
Jul 22 '05 #2
info wrote:
Hello,
The problem is to acquire image data and process them in
parallel on a Windows 2000 system.

So I am thinking of two threads. First thread is puting
all the image data into a std::queue and a second thread
is reading out the image data and is processing them.

Processing the data might be much slower than acquiring
it, that is why the memory consumption can possibly grow
up to 1.5 GByte worst case.

Will i'm facing problem with that solution?
Can OS provide that if i have physicly 2 GByte RAM.

(sorry for beeing slightly off topic, if s.o. think so pls.
recomment an other newsgroup)

bernd


By the way, threads are not parallel computing. The
processor is still only execution instructions in a
serial sequence. Threads are just tasks with less
overhead than full applications. So when the operating
system switches between threads, it doesn't have to
save and restore as much overhead as for applications.

For true parallel processing, you will need another
processor. For example, you could exercise a DMA
controller to aquire the data and place it into
memory. The processor would manipulate the data.
The key issue is coordinating between the two.

For more information, contact a newsgroup that
discusses your platform. The C++ language does not
have any _standard_ facilities for parallel processing
or multi-threading.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 22 '05 #3

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

Similar topics

6
by: Anders Søndergaard | last post by:
Hi, I'm trying to process a large filesystem (+20 million files) and keep the directories along with summarized information about the files (sizes, modification times, newest file and the like)...
53
by: john67 | last post by:
The company I work for is about to embark on developing a commercial application that will cost us tens-of-millions to develop. When all is said and done it will have thousands of business...
3
by: dave | last post by:
I'm trying to learn this. My problem, I have 2 strings that represent floats. I want to add them together. Should I look at using Cint to convert each character in the string and add...
15
by: barbaros | last post by:
Hello everybody, I need some advice on the following problem. I want to write a program (in C or C++) which will build a huge dictionary (hash array, if you prefer). The keys are strings, the...
8
by: Greg Stoch | last post by:
Hi, I'm newcomer to Microsoft product (VS.net 7.0, C++) and need to understand, why the binary code obtained using VC++ compiler is so huge as compared to the code by Borland C++ 5.02 (the same...
6
by: savsol | last post by:
Hi! I've a large form containing 600 fields (mix of textbox, checkbox, radiobuttons) i've broken the form in 10 parts (more or less with same number of fields) using web control, so if you press a...
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
15
by: pkirk25 | last post by:
I have a file with roughly 1000 lines that I cannot allow the user to read but which I want to use in my project. I thought I could copy it into one huge string variable but that won't work...
2
by: waNnY | last post by:
Hi all..i'm urgently need any attention here..pliz help to solve this problem.. The description of my problem is like dis >> let say now i have 100 length of a text. Now , i need to break it into...
9
by: NvrBst | last post by:
Whats the best way to count the lines? I'm using the following code at the moment: public long GetNumberOfLines(string fileName) { int buffSize = 65536; int streamSize = 65536; long...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.