Theoretically, would it be possible for a multi core CPU to emulate a single core CPU?

GoldenSun3DS

Well-Known Member
OP
Member
Joined
Apr 27, 2013
Messages
272
Trophies
0
Age
28
XP
385
Country
United States
On my phone (Galaxy S6), Limbo PC emulator can use multiple threads to emulate old PCs.

Would it be possible to apply that same strategy on a desktop with high multi thread performance but low single thread performance for low thread tasks?

Like have an octave core and emulate a dual Intel with multithreading, for example.
 

sarkwalvein

There's hope for a Xenosaga port.
Member
Joined
Jun 29, 2007
Messages
8,400
Trophies
2
Age
40
Location
Niedersachsen
XP
10,704
Country
Germany
No. If a given program was not made to take advantage of multiple cores or multi-threading it would be from difficult to impossible to run it's code in parallel and achieve any parallel speed up.
The only efficient parallelization that can be done with that kind of code if hardware based instruction level parallelization, optimized via out of order execution, and it is already done by your CPU.
 

GoldenSun3DS

Well-Known Member
OP
Member
Joined
Apr 27, 2013
Messages
272
Trophies
0
Age
28
XP
385
Country
United States
No. If a given program was not made to take advantage of multiple cores or multi-threading it would be from difficult to impossible to run it's code in parallel and achieve any parallel speed up.
The only efficient parallelization that can be done with that kind of code if hardware based instruction level parallelization, optimized via out of order execution, and it is already done by your CPU.

I'm talking about emulation.

I'm pretty sure the SNES was a single core processor, and the Higan emulator can take advantage of more than one core when emulating it.

Bit of an extreme example, but you get my point.
 

sarkwalvein

There's hope for a Xenosaga port.
Member
Joined
Jun 29, 2007
Messages
8,400
Trophies
2
Age
40
Location
Niedersachsen
XP
10,704
Country
Germany
I'm talking about emulation.

I'm pretty sure the SNES was a single core processor, and the Higan emulator can take advantage of more than one core when emulating it.

Bit of an extreme example, but you get my point.
You can't achieve speedup.
Of course emulation will result in way slower execution.
Serial code from the emulated system is executed serially, not in parallel.
Multiple cores may be used in the recompiling stage, to emulate additional chips, etc.
The serial code from the SNES main cpu is executed serially.
I don't know if you understand that doing this you will lose performance.

I am sleeping and on my phone, writing on this shit is a PITA.
Please read my previous post, take a look at Amdahl's law, think that in a different system you have many chips and components to emulate and those could be emulated on different threads, that would require synchronization and eat performance, meditate and write again after thinking and thinking.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys