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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 04 Semester: Spring 2015 Visual Programming-CS411 Total Marks: 20 Due Date: 10/Aug/2015

Assignment No. 04
Semester: Spring 2015
Visual Programming-CS411

 

Total Marks: 20

 

Due Date: 10/Aug/2015

Instructions:                          

Please read the following instructions carefully before submitting assignment:

  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your .doc File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be marked.
  • You will submit solution only in document (.doc or .docx) File.

Objectives:

To build the programming practices and understandability of concurrency controls in C#.

For any query about the assignment, contact at cs411@vu.edu.pk

Assignment Questions

 

Question:                                                                                                                               Marks 20     

 

Write a program in C# to demonstrate that, as a high-priority thread executes, it will delay the execution of all lower-priority threads.

 

Bonus Marks:

Those students who thinks that they are good programmer or they have good commands on Multithreading. They can win bonus marks to improve their CGP. The selected students will also be declared as shining stars on course website.

 

To participate in this competition, send your request to cs411@vu.edu.pk before August 7, 2015, 12:00 PM. I will choose up to five students by giving them a small programming tasks in a live session. Procedure and schedule will be replied to selected emails only.

 

BEST OF LUCK

 

+ How to Follow the New Added Discussions at Your Mail Address?

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

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2104

.

+ 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?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

thanks a lot zain nasar bro.....Be happy

Bro complete procedure likh dn plz

using System;
using System.Threading;
namespace threadpriority
{
class PriorityTest
{
bool loopSwitch;
public PriorityTest()
{
loopSwitch = true;
}

public bool LoopSwitch
{
set { loopSwitch = value; }
}
public void ThreadMethod()
{
long threadCount = 0;

while (loopSwitch)
{
threadCount++;
}
Console.WriteLine("{0} with {1,11} priority " +
"has a count = {2,13}", Thread.CurrentThread.Name,
Thread.CurrentThread.Priority.ToString(),
threadCount.ToString("N0"));
}
}
class hello
{

static void Main()
{
PriorityTest priorityTest = new PriorityTest();
ThreadStart startDelegate = new ThreadStart(priorityTest.ThreadMethod);
Thread threadOne = new Thread(startDelegate);
threadOne.Name = "ThreadOne";
Thread threadTwo = new Thread(startDelegate);
threadTwo.Name = "ThreadTwo";
threadTwo.Priority = ThreadPriority.Highest;
threadOne.Start();
threadTwo.Start();
// Allow counting for 10 seconds.
Thread.Sleep(10000);
priorityTest.LoopSwitch = false;
Console.Read();
}
}
}

ye solution he ya pehle wala solution he kun kdono coding different hain

zain nasar ap hi bta do yeh code WPS, Console Application ? in mein se kahan type krna hai? Please aj extended day hai.

thnks bro

is code mein koi changing to nai krni na...plz tell me..

Zain sb! Yeh code kis software main likhna hy aur es ki output kesy leni hy

Kindly help me...

Zain bro kaya ya code visual studio main lakhna ha or WPF main lakhna ha????

koi to yeh btao k yeh code WPF, Console Application? in mein se kahan type krnay se required output aye gi? Aj extended day hai. Please tell us.

plz thek wala solution  upload kar dain

RSS

Latest Activity

+ ! ! ! ! ! Sofia(VU ki ex) :{ updated their profile
3 hours ago
shahab al hassan posted a discussion
3 hours ago
shahab al hassan posted a status
"MCQs GRAND QUIZ (MID TERM) ISL 201"
3 hours ago
+!CS619!+ replied to +!CS619!+'s discussion MGT101 Short Notes VU Video Lectures 1 to 45 in the group MGT101 Financial Accounting
3 hours ago
+!CS619!+ added a discussion to the group MGT101 Financial Accounting
3 hours ago
Uswa and Laila kabeer are now friends
6 hours ago
°`·αғғαřοžУ ε ЙооЯ·´° ( آفروز ") and Nouman Butt are now friends
9 hours ago
Mushk replied to Mushk's discussion .. * * TEHREER KR MUJHY * * ..
9 hours ago
heavy updated their profile
10 hours ago
Awais posted discussions
11 hours ago
Alishba khan commented on Alishba khan's blog post "EGO"
11 hours ago
Profile IconShabbir Ahmad, Affan Gilani and Mishi joined Virtual University of Pakistan
12 hours ago

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

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

.