pages

package module
v0.0.0-...-a6894e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Pages is an exercise in concurrency. It is intended to mimic part of what a DBMS has to do when storing a row in a table. This almost always involves fetching the page which is the primary location and also other pages where indexes are stored. For the purposes of the exercise, I assume that all pages have to be fetched before processing can continue - this allows deadlock to occur. The processing is controlled by the values in the "constants" file. Note that these are compile-time constants, not run-time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gendata

func Gendata(txnChan chan request)

Gendata generates the transaction data and sends the txns to the scheduler.

func Run

func Run(runAck chan int64)

Run starts the data generation and transaction run processes, then passes page counts back to the driver process.

func RunTxn

func RunTxn(txnChan chan request, runAck chan int64)

RunTxn processes transactions.

func Worker

func Worker(input chan workreq)

Pretend to fetch the database page.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL