How does a computer program actually work?

AI Thread Summary
When the J key is pressed on a keyboard, an electrical signal is sent to the computer's processor, which interprets the signal and executes the corresponding code stored in memory. This code includes instructions to display the letter J, prompting the processor to send a signal to the graphics card. The graphics card converts this signal into pixels, which are then sent to the display monitor. The exact path of the electrical signal can vary based on the hardware and software configuration, involving components like the motherboard and input/output devices. Overall, the process illustrates the complexity of modern computers in executing even simple tasks.
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.
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...

Similar threads

Back
Top