From the application that I'm developing, I have a need to call extern
application (16-bit DOS program). That application can receive input data
from file specified in command line. Similar, output data could be written
in file also specified in command line. From my application I'm creating
input file, call the program, then read output file. Since I need very
intensive communication (many calls of external application during run
time), multiple file creation on hard disk and their reading dramatically
decreases performance of my application. Smarter scheduling could maybe
improve performance, but not enough.
Changes in extern application could not be done, because it's a freeware
program written long time ago, and I couldn't get source for it.
I'm wondering is there a way to use RAM instead of hard disk for this
communication. I would like to create some kind of RAMdisk partition
run-time (without restarting whole system, please) on which I would create
intermediate 'files'.
Does anybody have experience with this issue? Is maybe any commercial
solution available?
Any help will be appreciated.
Oliver 2 1870
On 28 Oct 2003 23:04:21 -0800, vo***@bigfoot.c om (Oliver) wrote in
comp.lang.c++: From the application that I'm developing, I have a need to call extern application (16-bit DOS program). That application can receive input data from file specified in command line. Similar, output data could be written in file also specified in command line. From my application I'm creating input file, call the program, then read output file. Since I need very intensive communication (many calls of external application during run time), multiple file creation on hard disk and their reading dramatically decreases performance of my application. Smarter scheduling could maybe improve performance, but not enough.
Changes in extern application could not be done, because it's a freeware program written long time ago, and I couldn't get source for it.
I'm wondering is there a way to use RAM instead of hard disk for this communication. I would like to create some kind of RAMdisk partition run-time (without restarting whole system, please) on which I would create intermediate 'files'.
Does anybody have experience with this issue? Is maybe any commercial solution available?
Any help will be appreciated.
Oliver
You need to ask about RAM disks for MS-DOS in an MS-DOS programming
group, like news:comp.os.ms dos.programmer. The standard C++ language,
the topic of this group, deals with files only in terms of abstract
streams, either C FILE *streams or C++ iostreams. The language itself
does not know or care about the association of a stream with any sort
of actual device, nor does it provide any method for doing this.
--
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.l earn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Yes, I realize now that was gone off-topic, so I apologize to all.
I sent my question to microsoft.publi c.win2000.file_ system newsgroup,
so let's hope that address is correct this time.
I apologize once more for flooding this group.
Greetings,
Oliver
Jack Klein <ja*******@spam cop.net> wrote in message news:<k3******* *************** **********@4ax. com>... On 28 Oct 2003 23:04:21 -0800, vo***@bigfoot.c om (Oliver) wrote in comp.lang.c++:
You need to ask about RAM disks for MS-DOS in an MS-DOS programming group, like news:comp.os.ms dos.programmer. The standard C++ language, the topic of this group, deals with files only in terms of abstract streams, either C FILE *streams or C++ iostreams. The language itself does not know or care about the association of a stream with any sort of actual device, nor does it provide any method for doing this. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Creigh Shank |
last post by:
Have a very large database and due to performance requirements it seems
that running MySQL in RAMDisk might be a good solution. Access to the
database is through PHP. Any suggestions or experiences?
Creigh
305-541-1122
--
MySQL General Mailing List
|
by: Creigh Shank |
last post by:
On moving my data files from /var/lib to /mnt/ramdisk I seem to be missing
something. I've changed every .ini and .conf file I can find (/etc/my.cnf,
/etc/init.d/mysql, /etc/init.d/mysqld, /etc/php.ini and
/etc/httpd/conf/httpd.conf (for DAV-lock)). MySQL seems to start ok, but
when I use my application through Apache the error message is that MySQL is
not running (I think it's just not finding it).
Any suggestions?
Creigh
|
by: Tony Johansson |
last post by:
Hello!
Below is a small program using the adaptor pattern.
We have four classes these are: PegAdapter, RoundPeg, SquarePeg
and a class TestPegs acting like a client
In class PegAdapter has some text just above the class header saying
"Its adapts a RoundPeg to a SquarePeg".
In the class that acts as a client which isTestPegs
|
by: Michael B. |
last post by:
I was just thinking about this, specifically wondering if there's any
features that the C specification currently lacks, and which may be
included in some future standardization.
Of course, I speak only of features in the spirit of C; something like
object-orientation, though a nice feature, does not belong in C.
Something like being able to #define a #define would be very handy,
though, e.g:
#define DECLARE_FOO(bar) #define...
|
by: Alpha |
last post by:
I have a small Window application and through out the different forms I
create a different dataset. At the begining I used the Tools to drag and
drop the SqlDataAdapter, connection and dataset objects to the frist few
forms but then later I removed those and created these objects in my code.
I now see 3 datasets in the Solution Explorer panel part but not all the
datasets that I have in my codes. Are these 3 datasets leftover from the...
| |
by: felixnielsen |
last post by:
Some might remember that i, not so long ago, started a treath or two
about a weird 3d labyrinth. I now have a working code, that i want to
share, hear comments, advice, ect., but first let me explain what its
all about.
The whole labyrinth is a cubic in its self and it contains x^3 cubic
rooms.
The labyrinth is infinite/finite, it has no borders, but still have a
size.
fx. if the size of the labytrint is 2^3 and you find yourself at
|
by: Priya |
last post by:
Hi,
whenever i open Solution file in VS.NET 2003 i get the followig error.
"Some of the properties associated with the solution could not be read"
I tried the solution given in the MS article
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B841707
It did'nt work
I re-installed VS.NET, it does not work.
Pls help.
|
by: Tom |
last post by:
I'd greatly appreciate advice and code snippets on how to create a ram
disk within a C/C++ program.
I also need to be able to determine the free space.
Thanks in advance for any help.
|
by: chsalvia |
last post by:
I've been programming in C++ for a little over 2 years, and I still
find myself wondering when I should use polymorphism.
Some people claim that polymorphism is such an integral part of C++,
that anybody who doesn't use it might as well just program in plain
C. I totally disagree with this, because I think C++ has a lot of
great features apart from polymorphism, such as the ability to
organize code into classes, code reuse through...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |