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

how does the stack and queue appears in computer memory

i always wonder how the stack and queue appears like in the memory??? i want to know if we can visibilly see the stack and queue when we open the motherboard
Jan 5 '14 #1

✓ answered by Nepomuk

Hello Divya Ramprasad and welcome to bytes.com!

Your second question is easy to answer: No, you won't be able to see a stack or a queue if you open the motherboard. What you may see is the RAM, which is a green bar with black rectangular chips on it and which is attached to the motherboard in a long slot. Many computers have several RAM bars, I've never seen a motherboard that supported less than two of them (though that doesn't necessarily mean, that a minimum of two are actually installed).

To answer your first question, it depends on what you mean with "how do they appear in memory" - if you mean how they look datatype wise, look at implementations of queues and stacks in languages such as C or, if you really want to know the details, in an assembly language. If you mean how they look optically I'd refer you to the first paragraph of my answer.

2 1432
Nepomuk
3,112 Expert 2GB
Hello Divya Ramprasad and welcome to bytes.com!

Your second question is easy to answer: No, you won't be able to see a stack or a queue if you open the motherboard. What you may see is the RAM, which is a green bar with black rectangular chips on it and which is attached to the motherboard in a long slot. Many computers have several RAM bars, I've never seen a motherboard that supported less than two of them (though that doesn't necessarily mean, that a minimum of two are actually installed).

To answer your first question, it depends on what you mean with "how do they appear in memory" - if you mean how they look datatype wise, look at implementations of queues and stacks in languages such as C or, if you really want to know the details, in an assembly language. If you mean how they look optically I'd refer you to the first paragraph of my answer.
Jan 6 '14 #2
tank u so much for the reply.....got ur point..
Jan 18 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Min-Koo Seo | last post by:
Hello. I am reading Effective C++ by Scott Myers. In item 10, there is a question for readers: writing generalized fixed size memory allocator. I tried to solve the problem, but I couldn't. To...
6
by: pit3k | last post by:
My program tries to call the vector::push_back(...) member function in a loop couple dozen milion times, which is what I expect. After about 20 millions successfull push_back() calls the program...
20
by: Jonas | last post by:
Hi, I'm 99 % sure that Standard C guarantees to do a memory move inside realloc() in case the new, returned memory block (address) is different than the original one. Can any C expert confirm...
7
by: unified | last post by:
Ok, I'm working on a program that is supposed to compare each letter of a string that is put into a stack and a queue. It is supposed to tell whether or not a word is a palindrome or not. (a...
2
by: 63q2o4i02 | last post by:
Hi, I've written a top-down recursive decent parser for SPICE circuit descriptions. For debugging purposes, I wanted each production rule/function to know what its own name was, so at the...
3
by: venky | last post by:
Hi s any one know what are the situations in which msg queue fails? thanks
1
by: oeillet | last post by:
hi every one iwant ahelp in this assignment(program ,code in c++) its as follows; aprogram that contain all operation that performed by linked list ; also contain amethod that calculate how many...
1
by: oraclerohith | last post by:
Hi All, I have a query with regards to checkpoint queue. Does checkpoint queue have RBA information, if it does have.. can I know how RBA address, which is the address in a physical file (Redo...
5
by: jon wayne | last post by:
Hi I was always under the assumption that linux always overcommits memory by default - but I'm getting unexpected results while requesting for a large ammount of memory using new (c++). In...
1
by: Pallav singh | last post by:
HI All Does STL vector guarantee contagious memory Allocation like array Thanks
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.