473,378 Members | 1,470 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,378 software developers and data experts.

Memory Vs non-memory resources

Hi,

can anyone explain the difference between a memory resource and a non-memory
resource. I have been shown an example of error handling for a non-memory
resource (accessing a file) but am not sure what the terms refer to.

A few examples of each would be ideal.

Many thanks.
Aug 8 '06 #1
5 1616
A memory resource is something that will require some of the machine's RAM
to operate (storing objects in memory, doing large calculations with
variables are examples).

A non-memory resource is something that does NOT utilize RAM or processor
time to operate (querying a database or opening a file).
"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
Hi,

can anyone explain the difference between a memory resource and a
non-memory
resource. I have been shown an example of error handling for a non-memory
resource (accessing a file) but am not sure what the terms refer to.

A few examples of each would be ideal.

Many thanks.

Aug 8 '06 #2
You will have to ask the person who used the term "non-memory resource." The
term "resource" is a general term that encompasses literally anything that
can be "used." Take a look at the following Wikipedia article on the term
with regards to computer science, for example:
http://en.wikipedia.org/wiki/Resourc...ter_science%29

As the article points, out, major resources include the CPU, the Hard Drive,
RAM (Random Access Memory), and Network Throughput. However, that is only
the short list. Still, of the 4 mentioned specifically, only one of them
(RAM) is a "memory resource." That is because only one of them is memory.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Expect the unaccepted.

"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
Hi,

can anyone explain the difference between a memory resource and a
non-memory
resource. I have been shown an example of error handling for a non-memory
resource (accessing a file) but am not sure what the terms refer to.

A few examples of each would be ideal.

Many thanks.

Aug 8 '06 #3
CashDeskMac,

I agree completely with Kevin, memory resource is probably a by somebody
invented own used name.

However a memory file system to emulate a disk, can be seen as a resource in
the RAM.

Cor

"cashdeskmac" <ca*********@discussions.microsoft.comschreef in bericht
news:A0**********************************@microsof t.com...
Hi,

can anyone explain the difference between a memory resource and a
non-memory
resource. I have been shown an example of error handling for a non-memory
resource (accessing a file) but am not sure what the terms refer to.

A few examples of each would be ideal.

Many thanks.

Aug 8 '06 #4
Whomever used this term, doesn't understand how a computer works (let me
guess you found it in Microsoft's documentation - would not surprise me) --
everything is a memory resource.

Accessing a file for example, the file could reside in RAM memory (aka the
cached by OS), it could reside in the cache on the hard drive. Since most
hard drives support DMA the CPU doesn't get involved that much in the
transfer of data from one resource to another. But lets be clear, every
resource on your PC uses a memory address, if it didn't, it could never be
accessed.

I think what the term is really referring to is loading the contents of a
file into a variable/structure -- depending on your buffer and structures
you'll consume RAM accordingly. Your code can determine how much memory you
use during the process of reading the file, what you elect to save, dump,
buffer sizes, etc. etc. The better applications will scale the file IO &
memory usage operations based on physical hardware (such as how much RAM is
installed and available on the PC). The less optimal applications will let
the OS decide and cache away.

Rob.

"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
Hi,

can anyone explain the difference between a memory resource and a
non-memory
resource. I have been shown an example of error handling for a non-memory
resource (accessing a file) but am not sure what the terms refer to.

A few examples of each would be ideal.

Many thanks.

Aug 8 '06 #5
Were they were using this statement in the context of garbage collection (as
you mention error handling?).

Cheers,

Greg
"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
Hi,

can anyone explain the difference between a memory resource and a
non-memory
resource. I have been shown an example of error handling for a non-memory
resource (accessing a file) but am not sure what the terms refer to.

A few examples of each would be ideal.

Many thanks.

Aug 9 '06 #6

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

Similar topics

5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
14
by: Patrick Kowalzick | last post by:
Dear all, I have an existing piece of code with a struct with some PODs. struct A { int x; int y; };
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
0
by: amitvps | last post by:
Secure Socket Layer is very important and useful for any web application but it brings some problems too with itself. Handling navigation between secure and non-secure pages is one of the cumbersome...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...

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.