This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "100005064335645", | |
| "name": "Vũ Đình Anh", | |
| "birthday": "11/27/1997", | |
| "education": [ | |
| { | |
| "school": { | |
| "id": "162994180422153", | |
| "name": "HUS High School for Gifted Students - Vietnam National University" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | |
| */ |
NewerOlder