Tuesday, February 7, 2017

Top Free Movie Apps for Android


            Here is a list of what I think are the best Movie apps on Android,These apps are all free and are not available on the Play store.I'am not telling you to download any of these apps but simply telling you what is actually out there for you to try.

I have mentioned the links to each application along with the description,in the case of an add appearing when following the link wait for 5 seconds and press skip add.


CinemaBox

Personally this is the best movie app out there,it offers you any movie for free no catch at all,TV Series are available as well so you have no problem catching up with the Latest Episodes of any TV series .Another huge advantage is the ability to download any movie or episode you want so you can watch it later.

Here is the link : CinemaBox









Mobdro


This application is very much different to Cinemabox,Here with Mobdro you get more of TV Chanel experience with it offering you huge number Chanels such as HBO , StarSports  ,Cartoon Network e.t.c,You name it Mobdro has got it for you.


Here is the link : Mobdro













Popcorn Time

This application offers you almost everything that CinemaBox offers you,but why is it 3rd on my list,Simply because both of the applications mentioned above offers you much better user experience smooth navigation.

Here is the link : Popcorn Time


There you have it the best Free Movie apps for Android,Yes it is a small list of applications but don't worry you will not have to look any further.

Saturday, February 4, 2017

Muti Threading Java



Multi threading is the ability to handle multiple processes, i.e. performing different task in parallel.

A Single application running is a process and a process can have multiple threads. For an example Microsoft Word is an application and the spell checker can be considered as a thread.

When the main method is called a thread named main thread is created and executes the program.


Creating a Thread


Thread object can be created as shown below, and when the start ( ) method is called, the run ( ) method in the thread class is executed







Implementing Multithreading

The thread class can be extended and the run ( ) method can be overridden as shown below.













Note:

It is not a good practice to inherit the thread class just to override the run ( ) method, Therefore it is more suitable to implement the runnable interface. Therefore when creating thread objects we can pass the runnable object. When we pass the runnable object we tell the thread object where to find the run ( ) method.




Example Multithreading

In the below example two threads are created for a Hare and Tortoise, both threads are executed simultaneously, and the result set is produced accordingly.



Race.java


Above Class is a thread class and two instances of above class is created in the Multithreading class shown below, both threads are executed simultaneously and the winner is set to a Static variable in order to display which thread has won the race.


Multithreading.java




I won't be posting the results for this example because I don't want to ruin the fun part.You can check it out for yourself.

There  is much more to threads than what is mentioned here,Follow the link.

http://www.javatpoint.com/priority-of-a-thread

The Following Video will help understand the concept of threading more clearly.