Skip to content

Priority Queue implementation on Go. FIFO, Concurrency safe.

Notifications You must be signed in to change notification settings

coraxster/PriorityQueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PriorityQueue Build Status

Priority Queue implementation on Go.

  1. On top of native heap
  2. Multithread access safe (using mutex)
  3. Fifo

Usage

//make queue
q := PriorityQueue.Build()

//push
pr: = 1
q.Push(something.(interface{}), pr)

//pull
somethingWithHightPr := q.Pull()

Usage, prioritize channels

//ins - []chan interface{}
out := PriorityQueue.Prioritize(ins...)

example

About

Priority Queue implementation on Go. FIFO, Concurrency safe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages