Java Multithreading program with BigInt.

We are looking multithreading program with BigInt in Java and C++

I have attached my C++ file([login to view URL]) and Java codes([login to view URL]).

In C++ files, I couldn't increase while loop in line 284 ~ 345. I

think I got a wrong method used to increase a Big Integer.

In my Java codes, you can read my descriptions. As I discussed it,

there are some problems to run multi-threads in some while loop

between line 94 ~ 154 in [login to view URL] file.

Every code is working on the terminal mode, and you have to install

Cygwin C++ compiler.

1. Purpose - to find the optimal bit size as below:

T = A * B^X + R, ex.) 16402=1*2^14+18=1*4^7+18

if the bit size of T is 15 bits(16402), A=1(1bit), B=4(3 bits), X=7(3 bits) and R=18(5 bits), then total size will be 12 bits=1+3+3+5 for the optimal case. Therefore there is 3 bits benefits than original bits.

2. For finding the optimal case, I set my algorithm concept as below:

- There is 4 variables : A, B, X, and R

- So, each variables size will be 1/4 size of the original bit size.

ex.) 1<=A<=(12/4) size, 2<=B<=(12/4), 1<=X<=(12/4) and R will be same to X, but actually we don't care the size of R because we have the above formula already.

- Additionally, to apply multi-thread to this algorithm, I divided the size of X as much as the number of threads with two variables as min, max. For example, if total threads are 3, X will be from 1 to (2^3+2^2+2^1).

So, the first thread will have the range 1~1*((2^3+2^2+2^1)/3).

The second thread will be 1*((2^3+2^2+2^1)/3) ~ 2*((2^3+2^2+2^1)/3)

and the last one will be 2*((2^3+2^2+2^1)/3) ~ (2^3+2^2+2^1).

- If you find all of cases to satisfy the avobe formula for each A, B, X and R, you should compare them each other and have to choice the most small size of combination to satisfy the avobe formula for each A, B, X and R.

3. In my java codes, I made it similary, but I found my division part of X was something wrong,

And now, I'm trying to fix it. Also, I appied multi-thread but it looks like the only one thread works.

Actually, it's not true. I checked them and found all threads are running correctly, but, I failed to divide the range of X, and other threads are done quickly and it looks they didn't work.

In my opinion, it looks like about the load balancing of the range of X, but currently, I got wrong way.

Please, just do refer to my codes, and make it enhance them.

4. How to compile and run:

- javac *.java

- java goalJavaExp

Skills: C Programming, C++ Programming, Java, Software Architecture

See more: java thread concepts, sum of 1 to 100 using thread in java, sum of n numbers using threads in java, addition using threads in java, multithreading in java, write program to calculate sum of n numbers using thread library, java multithreading sum, addition of two numbers in java using multithreading, read selected message java mail program, java easy program, program takes screenshot min, java multithreading ftp server, covert java flash program, looking good programmers form partnership, looking good help desk script, java payroll program, java unicode program, simple java applet program, sample java gui program, java gui program

About the Employer:
( 2 reviews ) Jenkintown, United States

Project ID: #16919274

Awarded to:


Hello, I have read your project details carefully and would like to discuss my skills and plans with you. I am an c / c++ expert and have been developing and experimenting with it for 10 years. Great things co More

$155 USD in 3 days
(31 Reviews)

10 freelancers are bidding on average $124 for this job


Hi! My name is Ihor, I will be glad to help you I have strong experience in C# and Java Android development for 3+ years. Feel free to contact me any time to discuss details.

$122 USD in 3 days
(19 Reviews)
$155 USD in 3 days
(78 Reviews)

Hello, client. I'm a Java expert with full experiences. Please check my reviews. I will complete it in 2 days. I can finish your project wonderfully. Thanks.

$150 USD in 2 days
(26 Reviews)
$200 USD in 3 days
(31 Reviews)

hello. nice to meet you! I read carefully your description. I am a scraping expert using python, javascript, php and vba. please see my review. if you think i may help you, please hire me. if you hire me, you will succ More

$155 USD in 3 days
(6 Reviews)

Hi, how are you. Glad to meet you. I have long experience with C++ and java programming. I am sure you are fully satisfied with me in this project. I have already a experience with Big Integer. I hope your response.

$55 USD in 1 day
(32 Reviews)
$66 USD in 3 days
(7 Reviews)
$30 USD in 3 days
(2 Reviews)

Our Motto is to provide high quality work and client satisfaction delivered before your deadline. Web Development & Designing | Android | iPad | iPhone | Laraval I PHP | React Native I Hybrid app I Bitcoin | E-Com More

$155 USD in 3 days
(0 Reviews)