How does a computer program actually work?

Click For Summary

Discussion Overview

The discussion centers around the physical path an electrical signal takes when a key is pressed on a keyboard, specifically focusing on how the signal transforms into a visual output on a computer screen. Participants explore the complexities involved in this process, including the roles of various hardware components and software interactions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant expresses a desire to understand the entire journey of an electrical signal from pressing a key to displaying a character on the screen.
  • Another participant notes that there are thousands of electrical signals involved in this process, emphasizing the complexity and the various components such as integrated circuits, motherboards, and keyboards.
  • It is mentioned that the specific path of the signal depends on factors like the type of keyboard, computer, and operating system.
  • A participant provides a link to a resource illustrating one path in a microprocessor, suggesting that there are multiple pathways involved.
  • Another participant describes the general flow of signals from the keyboard to the processor, then to memory, graphics card, and finally to the display, while acknowledging that the exact path can vary based on hardware and software configurations.
  • There is a suggestion to refer to external resources for further reading on the topic.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single, definitive path for the electrical signal, as multiple views and complexities are presented regarding the process and the components involved.

Contextual Notes

The discussion highlights the limitations in understanding the full complexity of computer operations, including the dependence on specific hardware configurations and the intricacies of integrated systems.

jaydnul
Messages
558
Reaction score
15
I really want to know the physical path an electrical signal takes on its journey. For example, when i press the J key on my keyboard, an electrical impulse is sent where? to the hard drive where the keyboard program is stored? Could someone just give me all the stops that electrical signal will take in order to be eventually displayed as a J by the pixels on my screen? Thanks a bunch
 
Engineering news on Phys.org
There is no single electrical signal that conveys the J key on the keyboard to the J shown on the display. In fact there are thousands of electrical signals involved. The dirty details of the sequence of all of these signals needed to perform this seemly simple act is what computer/electrical engineers learn getting their degree.

Many of these signals are inside of integrated circuits (processor memory etc.).
Many are on the motherboard (address/data lines), USB lines, interrupts.
Many are within the keyboard itself (inside microcontroller and on keyboard motherboard).

And it depends on stuff like:
What kind of keyboard (traditional, USB, wireless).
What kind of computer (Apple, PC, Sun workstation, Ipad)
Which operating system (Linux, Microsoft).
 
lundyjb said:
I really want to know the physical path an electrical signal takes on its journey. For example, when i press the J key on my keyboard, an electrical impulse is sent where? to the hard drive where the keyboard program is stored? Could someone just give me all the stops that electrical signal will take in order to be eventually displayed as a J by the pixels on my screen? Thanks a bunch

Here is some reading that you should check out at HowStuffWorks.com:

http://www.howstuffworks.com/pc.htm

.
 

A computer program is a set of instructions or code written by a programmer to perform a specific task. When you press the J key on your keyboard, it sends an electrical signal to the computer's processor. The processor interprets this signal and executes the corresponding code for the J key, which is typically stored in the computer's memory. The code may include instructions to display the letter J on the screen, so the processor sends a signal to the graphics card. The graphics card then converts the signal into pixels and sends it to the display monitor, which ultimately displays the letter J on the screen.

The exact path that the electrical signal takes may vary depending on the specific hardware and software configuration of your computer. However, generally, the signal will travel from the keyboard to the processor, then to the memory, graphics card, and finally to the display monitor. It is important to note that modern computers are extremely complex and have multiple components working together to execute a single task, so the signal may also travel through other components such as the motherboard and input/output devices.

In summary, a computer program works by interpreting and executing code to perform a specific task, and the physical path of an electrical signal involves multiple components working together to display the desired output on the screen.
 

Similar threads

Replies
20
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 26 ·
Replies
26
Views
8K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 7 ·
Replies
7
Views
3K