We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

lets start the discussion......

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..


See Your Saved Posts Timeline

Views: 1893

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

Attachments:

Replies to This Discussion

ek program chlta hy to wo ek process create kerta hy phir us process main kai thread create hty hain jo us program k andar ki chezun ko alag alag control kerty hain....

suppose 

kerin k maine chrome chlaya hua hy us main kafi sary tabs open kiye huye hain .
chrome ek program hy and uska ek process create hua hy
or us main her tabs k liye alag thread create hua hy like this:

isko kahty hain threading and iska yeh kam hta hy jo asgnmnt hy us main apny yeh kerna hy k ek program bnana hy and us se 2 thread creat kerny hain ek thread file1 ko and dusara 2nd file ko handle keryga dono thread one by one dono files main se ek ek line ko read kerin gy means phly 1st wala file ki first line ko phir 2nd wala 2nd file ki 1st line ko.........best of luck

By the way it is not thread its separate process.
Example of thread is ms word is a process and apelling checker is a thread which is running inside process.
U kill process thread automatically killed.
While in case of chrome u need to killl each process separately

please help some one.....
 how can we put three class in a single java file . means. firstThread class, secondThread class and mainThread class? 

as the instructor mentioned to submit a single java file.

public class MainThread { FirstThread first = new FirstThread ("first.txt"); Thread t1 = new Thread (first); SecondThread second = new SecondThread ("second.txt"); Thread t2 = new Thread(second);
public MainThread(){ t1.start(); t2.start(); } public static void main(String args[]){ MainThread m = new MainThread(); }

u can have multiple classes in single java file only remember that one class should be public. for example

public class MainClass{

}

class Student{

}

class Teacher{

}

and mostly we keep the class public which contains public static void main method in it.

and file name should be same as the public class name(case senstive)

i received this error inner classes can't have static declaration ?

anyone tell me about this error??

thanks 

Mustafa noor??

plz code bta day assign k

Dear Fellows,

All of you are requested, Please post Only One Discussion for Current Assignment/GDB/Online Quiz and everyone reply/share/discussed his/her data on that same discussion, so that all members get solution & discuss easily on Current Assignment/GDB/Online Quiz.

So please don’t post two or more discussions for one Current Assignment/GDB/Online Quiz, hope you’ll understand and cooperate with us.

RSS

Latest Activity

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service