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
29
XP
495
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,520
Trophies
2
Age
41
Location
Niedersachsen
XP
11,278
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
29
XP
495
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,520
Trophies
2
Age
41
Location
Niedersachsen
XP
11,278
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @ZeroT21, The Russians are after you lol.
  • K3Nv2 @ K3Nv2:
    Send me your ip I'll remotely fix it
  • ZeroT21 @ ZeroT21:
    @K3Nv2 my head needs fixing if I believe you
  • ZeroT21 @ ZeroT21:
    it's kinda fun watching it happen tho
  • K3Nv2 @ K3Nv2:
    It needs fixing for other things but your pc I can fix
  • ZeroT21 @ ZeroT21:
    over 300+ virus/trojians/worms after scanning, what did I do to deserve this attention lol
  • ZeroT21 @ ZeroT21:
    tho I find it funny when i receive other people's pc/laptops in this state
  • ZeroT21 @ ZeroT21:
    i wont be upgrading unless I cant run the games i want anymore
  • K3Nv2 @ K3Nv2:
    Spill water on it good excuse
  • ZeroT21 @ ZeroT21:
    @K3Nv2 that's like a valid option if someone else is paying for ya
  • K3Nv2 @ K3Nv2:
    Daddy's wallet
  • K3Nv2 @ K3Nv2:
    Ngl hogwarts legacy has good pooping music
  • OctoAori20 @ OctoAori20:
    That's uh-
  • OctoAori20 @ OctoAori20:
    That's certainly a Dairy Queen sign lmao
  • K3Nv2 @ K3Nv2:
    You should see his help wanted signs
  • OctoAori20 @ OctoAori20:
    Ugh, so many sweat-dipwads in Sploon 3 Anarchy mode tonight
  • OctoAori20 @ OctoAori20:
    I didn't know this was "Make Octo never finish Fresh Season 2024 Catalog in Splatoon 3" month, good god
  • Veho @ Veho:
    What's the point of "confirming" games you know will get released. Like Nintendo "confirming" a Zelda sequel. "We can't be sure Nintendo is working on a new Zelda game, or if a new Zelda game will ever be released, until they officially confirm it."
  • Veho @ Veho:
    "There is literally no way to know if they will ever release a new Zelda game, it's wild speculation until they officially confirm it."
  • K3Nv2 @ K3Nv2:
    Black ops was the lesser shitter line in cock a poopoo tbf just a way to let people know it hasn't died or going a different route I guess
  • K3Nv2 @ K3Nv2:
    $70 DLC per 6 months is what it turned into
    K3Nv2 @ K3Nv2: https://youtu.be/R28ZSY2Sc2A?si=H5Lb6PNkzMhAHO_P