registers question
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
You are in the wrong place! We sold all our EIP's for food...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
You are in the wrong place! We sold all our EIP's for food...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
So after the sale did the EIP's point to the first thing that you, or the byuer will do next?
Me of course! Buyer do not know about computers - he thinks EIP is some innovation think...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
Random random fact: While recording Wish You Were Here, the same former member wandered into the recording and none of the band recognised him.
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
EbolaHost wrote:
(random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
Syd Barrett[^] was the driving force and one of the original members of Pink Floyd. He released 2 solo albums; The Mapcap Laughs and Barrett but they didn't go very well. I have The Mapcap Laughs and it is a very strange album.
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever! Rich Tennant 5th Wave
-
Each program runs in its own address and activity space, totally isolated from the other. As one is pre-empted, its environment, including registers, is saved and then restored when it gets its next timeslice.
-
So far 45 minutes have elapsed and nobody has suggested your answer is incomplete or theirs is better. I vote we move Q&A to the Lounge and post drivel in Q&A. All in favor raise your hands...
S u n s h i n e wrote:
post drivel in Q&A
Where's the change in that? :confused:
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
The problem with quotes on the internet is that you can never tell if they're genuine
Winston Churchill, 1944
-----
I'd just like a chance to prove that money can't make me happy.
Me, all the time -
EbolaHost wrote:
(random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
Syd Barrett[^] was the driving force and one of the original members of Pink Floyd. He released 2 solo albums; The Mapcap Laughs and Barrett but they didn't go very well. I have The Mapcap Laughs and it is a very strange album.
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever! Rich Tennant 5th Wave
both of his solo records are great. and they've influenced a ton of artists over the years.
-
Obviously it can't work that way, precisely because of the reason you give. So why is this even a question?
-
So far 45 minutes have elapsed and nobody has suggested your answer is incomplete or theirs is better. I vote we move Q&A to the Lounge and post drivel in Q&A. All in favor raise your hands...
-
harold aptroot wrote:
So why is this even a question?
Not everyone understands how a multi-tasking operating system works. Certainly plenty of "developers" in Q&A would seem not to.
Even though they may not know how it works, it should be immediately obvious that the way OP implied it might work is definitely impossible, especially since OP gave an argument for why that is so. If you prove something can't work, then obviously it doesn't work that way.
-
harold aptroot wrote:
So why is this even a question?
Not everyone understands how a multi-tasking operating system works. Certainly plenty of "developers" in Q&A would seem not to.
Richard MacCutchan wrote:
Not everyone understands how a multi-tasking operating system anything related to a computer works. Certainly plenty of "developers" in Q&A would seem not to
FTFY!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
-
Even though they may not know how it works, it should be immediately obvious that the way OP implied it might work is definitely impossible, especially since OP gave an argument for why that is so. If you prove something can't work, then obviously it doesn't work that way.
-
Richard MacCutchan wrote:
Not everyone understands how a multi-tasking operating system anything related to a computer works. Certainly plenty of "developers" in Q&A would seem not to
FTFY!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
-
harold aptroot wrote:
it should be immediately obvious
Yes, but only if you have an undestanding of how an OS works, which is not always obvious to students, and others who are learning.
-
Suppose we run two programs on a single-core processor First sets the EIP pointer to 2 (example)and the second one sets it to 1 How does the first program know it will continue from adress 2 and not 1 ? Thank you very much (random fact: Pink Floyd's wish you were here was written not for someone who died ,but for an ex member who went insane)
Just to add to the context switching answer... The thing to remember is the CPU can only do one thing at once... just really really fast. Running two apps at once or two threads in an app at once is simply a software construct in things like the Windows subsystem. Hardware doesn't care.
Jeremy Falcon