can we also do queue operations in microprocessor? (given that the microprocessor supports stack operations )
Asked
Active
Viewed 407 times
0
-
somebody edit this question please.. – Srinivas Reddy Thatiparthy Apr 26 '10 at 06:55
-
@Srinivas, I'd like to, but I don't understand what's asked here... – P Shved Apr 26 '10 at 07:07
-
what she is asking is there is an inbuilt stack in microprocessor,so along the same lines is there a queue also? – Srinivas Reddy Thatiparthy Apr 26 '10 at 08:10
2 Answers
2
No. The stack is built in insofar as there's a register and operations to support it. There is no similar support for a queue.
If you want a queue, you need to implement it in code.

Carl Smotricz
- 66,391
- 18
- 125
- 167
0
Have stack, want Queue??...
You can always implement queues in software. Refer this Q for more:
For a detailed discussion on how to implement a queue using stacks:
GoodLUCK!!

Community
- 1
- 1

TheCodeArtist
- 21,479
- 4
- 69
- 130