Understanding Fork Join

From CSE231 Wiki
Revision as of 04:11, 10 February 2023 by KaiAng (talk | contribs) (Created page with "== Overview == This page will walk you through reading documentation and understanding what the functions do in a practical manner. == Fork == <p>When we look at the docs, we...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

This page will walk you through reading documentation and understanding what the functions do in a practical manner.

Fork

When we look at the docs, we are greeted with the following:

Fork docs.png

static means that the function is related to the class, FJ as opposed to a specific instance of that class. This means that we can call FJ.fork directly, we don't need to create an instance of that class to do so. In our code, we typically just write fork because Professor Cosgrove has imported the appropriate dependencies for you!