Skip to content

Instantly share code, notes, and snippets.

View zheltkov's full-sized avatar

Alex Zheltkov zheltkov

  • Düsseldorf, Germany
View GitHub Profile
@zheltkov
zheltkov / main.go
Last active September 22, 2023 15:48
n-th prime
package main
import (
"flag"
"fmt"
"math"
"sync"
"sync/atomic"
)
//
// main.cpp
// test
//
// Created by alex on 18/05/2018.
// Copyright © 2018 alex. All rights reserved.
//
#include <iostream>
#include <iomanip>
@zheltkov
zheltkov / main.cpp
Last active April 27, 2018 21:04
Типа события
#include <iostream>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <vector>
int sum = 0; // sum count
constexpr int threadnum = 15;
@zheltkov
zheltkov / Main.java
Created February 10, 2015 18:07
thread pool that wait
package com.company;
import java.util.concurrent.*;
public class Main {
private static ThreadPoolExecutor threadPoolExecutor;
public static void main(String[] args) {