click below
click below
Normal Size Small Size show me how
thinking logically
2.1 - thinking logically
Term | Definition |
---|---|
decision points definition | the times within a prgram in which the output of it may change depending on the information givin to it prior |
decision points in code | often done with Boolean statements (eg switch cases, for/while loops, if/else selection etc) |
decision points visually | diamonds on a flowchart |
decision points benefits | knowledge of these points and when they occur increases efficiency |
logical conditions | the (boolean) statements that lead to alterations in the program’s linearity |
concurrency | when a program is able to make progress on more than 1 task at any given point in time (i.e. one task does not have to be finished before the other one is continued) |
single threaded programs | always non-concurrent. When there is one order of events happening at any given point in time |
parallel processing | when concurrency is achieved by a program by running the code across multiple cores, instead of switching between the threats multiple times per second in the same core |
parallelism | when tasks are split into subtasks and are running simultaneously across different cores |
concurrency and parallelism link | not mutually exclusive, but one does not need to be true for the other to be true. Concurrent events are not always ran in parallel (eg single core systems) |