Coder Social home page Coder Social logo

sergysanjj / critical_region Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 100 KB

Collection of methods for working with critical regions or testing of new methods

License: GNU General Public License v3.0

Java 100.00%
mutual-exclusion-testing critical-regions lock-interfaces lock binary-lock dekker dekker-lock

critical_region's Introduction

Critical Region

This repository is a collection of methods for working with critical regions or testing of new methods

Created by

Implemented parts

  • Lock interfaces
  • Fix number lock interfaces
  • Race condition demonstration
  • Dekker lock
  • Framework for mutual exclusion testing

Demonstration and testing

Demonstration is implemented in a form of unit tests which can be found here

Lock interfaces and abstractions

Following interfaces and abstractions are implemented:

  • FixNumLock (i);
  • FixNumLockN (a);
  • BinaryLock (a);

Lock concrete implementations

  • DekkerLock
  • FakeLock (for false case demonstration of mutual exclusion testing framework)

Mutual exclusion testing

To create a new unit test, you have to extend MutualExclusionTest<LockClass> class by implementing methods:

  • prephase
  • lockAction
  • unlockAction

such methods will be called during testing with providesMutualExclusion(LockClass testableLock) method

critical_region's People

Contributors

nikitosoleil avatar sergysanjj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.