Threads & Processes

rukawa

rukawa

@rukawa-Y0pUkC Oct 22, 2024
When I create a program and want it to be executed using threads do I have to create them myself and add their code to my program or will the processor create its own threads and use them to execute the program?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • rahul69

    rahul69

    @rahul69-97fAOs Aug 10, 2013

    rukawa
    When I create a program and want it to be executed using threads do I have to create them myself and add their code to my program or will the processor create its own threads and use them to execute the program?
    If u want threads in ur program, u need to create threads in your program ☕
  • Vishal Sharma

    Vishal Sharma

    @vishal-pysGmK Aug 10, 2013

    rukawa
    When I create a program and want it to be executed using threads do I have to create them myself and add their code to my program or will the processor create its own threads and use them to execute the program?
    processor doesn't know anything unless you tell it! 😛
  • Nayan Goenka

    Nayan Goenka

    @nayan-Dhpt4N Aug 10, 2013

    rukawa
    When I create a program and want it to be executed using threads do I have to create them myself and add their code to my program or will the processor create its own threads and use them to execute the program?


    Take it in this way. A computer is the smartest invention man has ever made. But its the dumbest of all machines. You need to feed in everything before expecting any output