Skip to content

Instantly share code, notes, and snippets.

View tungurlakachakcak's full-sized avatar
🐈
Miay

tungurlakachakcak

🐈
Miay
View GitHub Profile
@tungurlakachakcak
tungurlakachakcak / btCfr.markdown
Created June 28, 2014 14:00
A Pen by Valeri Hristov.
@tungurlakachakcak
tungurlakachakcak / Ftoqb.markdown
Created June 28, 2014 14:11
A Pen by Valeri Hristov.
@tungurlakachakcak
tungurlakachakcak / SoftUni-Footer.markdown
Created June 29, 2014 13:18
A Pen by Valeri Hristov.
@tungurlakachakcak
tungurlakachakcak / frontendDevlopmentBookmarks.md
Last active May 5, 2016 08:31 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@tungurlakachakcak
tungurlakachakcak / expr_eval.rkt
Created September 23, 2019 22:56
Expression eval in Racket
; Small interpreter
; (Const (Add 1 (Add-v 2 3))) = 6
(define (Const? x) (eq? x `Const))
(define (Add? x) (eq? x `Add))
(define (eval_expr exp)
(cond [(Const? (car exp))
(if (number? (cdr exp))
(cdr exp)
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class ThreadPool implements IThreadPool {
private List<PoolThread> threads;
private BlockingQueue<ITask> tasks;
private boolean isStopped = false;
public class Main {
public static void main(String[] args) throws InterruptedException {
ITask summator1 = new Summator((byte) 90);
ITask summator2 = new Summator((byte) 9);
ITask summator3 = new Summator((byte) 30);
ITask summator4 = new Summator((byte) 65);
ITask summator5 = new Summator((byte) 100);
IThreadPool myThreadPool = new ThreadPool(4, 4);