Skip to content

Instantly share code, notes, and snippets.

View adv27's full-sized avatar
🎯
Focusing

Dinh-Anh Vu adv27

🎯
Focusing
View GitHub Profile
/*
11-Nov-2017
C++ Advanced course final task - part 1
In the inspiration of hw3, let's move further:
1. Please use two thread to sort sv1.json and sv2.json in parallel to achive
high performance. There can be millions of records in each file.
2. Merge results into all.json
3. Count number of students by categories in parallel, with grade >= 8.5,
#include <iostream>
#include "json.hpp"
using json = nlohmann::json;
// Cho hai danh sách sinh viên theo định dạng JSON như sau
json sv1 = R"(
{
"SV": [
{"id": 1,
{
"id": "100005064335645",
"name": "Vũ Đình Anh",
"birthday": "11/27/1997",
"education": [
{
"school": {
"id": "162994180422153",
"name": "HUS High School for Gifted Students - Vietnam National University"
},
import java.util.Scanner;
import java.util.Timer;
import java.util.TimerTask;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/