Skip to content

gkitsos01/java-reading-large-file-speed-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reading-Speed-Project

Threads and Callables

Description

This project designs a java program that counts the number of characters in a large word file. It basically compares runtime (System.nanoTime ()) between two versions of the same function:

-->Counting a number of characters by serially running a String array (1 thread).
-->Calculate number of characters using concurrent calculation in a String. It will break the array into more pieces
and assign the same code to each thread (1 thread for each piece).

The file used for the project can be downloaded from:

--> https://archive.org/download/2015_reddit_comments_corpus/reddit_data/2008/RC_2008-07.bz2

About

Threads and Callables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages