Click here to Skip to main content
15,902,745 members
Home / Discussions / C#
   

C#

 
Questionwhat is new in c# 2? Pin
alaquniabi28-Jun-06 2:40
alaquniabi28-Jun-06 2:40 
AnswerRe: what is new in c# 2? Pin
User 665828-Jun-06 2:46
User 665828-Jun-06 2:46 
QuestionExcel in ASP.NET Pin
Haridas.R28-Jun-06 2:33
Haridas.R28-Jun-06 2:33 
QuestionTreeView in DataGrid Pin
mansimani28-Jun-06 2:27
mansimani28-Jun-06 2:27 
QuestionHow can call C#.net function from JavaScript [modified] Pin
Haridas.R28-Jun-06 2:22
Haridas.R28-Jun-06 2:22 
AnswerRe: How can call C#.net function from JavaScript [modified] Pin
J4amieC28-Jun-06 2:30
J4amieC28-Jun-06 2:30 
QuestionProgram in C# which can use dual core processors Pin
yarns28-Jun-06 2:14
yarns28-Jun-06 2:14 
AnswerRe: Program in C# which can use dual core processors [modified] Pin
stancrm28-Jun-06 2:40
stancrm28-Jun-06 2:40 
If you write your code into multithreading environment or more than one process, then it will be automatically split into 2 cores.
If you want to optimize your code to run into Dual Core Processor, then you must write your code in C++ and compile it using e.g Intel C++ Compiler.
If you want to try, just play with this code:
Run only thread1, or only thread2, or thread1 and thread2 and see cpu load in task manager.
using System;
using System.Threading;

namespace ConsoleApplication22
{
	class Class1
	{
		[STAThread]
		static void Main(string[] args)
		{
			Thread t1 = new Thread(new ThreadStart(Worker1));
			Thread t2 = new Thread(new ThreadStart(Worker2));

			t1.Start();
			t2.Start();
		}

		static void Worker1()
		{
			int a = 0;
			while(true)
				a++;
		}

		static void Worker2()
		{
			int a = 0;
			while(true)
				a++;
		}
	}
}


-- modified at 8:45 Wednesday 28th June, 2006
Questiongridview with ynamic control Pin
johnes777928-Jun-06 2:10
johnes777928-Jun-06 2:10 
AnswerRe: gridview with ynamic control Pin
Mairaaj Khan28-Jun-06 3:17
professionalMairaaj Khan28-Jun-06 3:17 
QuestionRe: gridview with ynamic control Pin
johnes777928-Jun-06 5:09
johnes777928-Jun-06 5:09 
Questionbutton up and down Pin
toink toink28-Jun-06 2:04
toink toink28-Jun-06 2:04 
AnswerRe: button up and down Pin
Not Active28-Jun-06 2:35
mentorNot Active28-Jun-06 2:35 
GeneralRe: button up and down Pin
toink toink28-Jun-06 5:02
toink toink28-Jun-06 5:02 
QuestionC# windows application Pin
Alamzeb khan28-Jun-06 1:04
Alamzeb khan28-Jun-06 1:04 
AnswerRe: C# windows application Pin
User 665828-Jun-06 1:12
User 665828-Jun-06 1:12 
AnswerRe: C# windows application Pin
Nader Elshehabi28-Jun-06 1:15
Nader Elshehabi28-Jun-06 1:15 
AnswerRe: C# windows application Pin
stancrm28-Jun-06 1:30
stancrm28-Jun-06 1:30 
Questiona few question about process management ? Pin
cmpeng3428-Jun-06 0:49
cmpeng3428-Jun-06 0:49 
AnswerRe: a few question about process management ? Pin
Nader Elshehabi28-Jun-06 1:28
Nader Elshehabi28-Jun-06 1:28 
QuestionC# ActiveX in CAB Pin
gnjunge27-Jun-06 23:42
gnjunge27-Jun-06 23:42 
QuestionCould sombody help clean up awfull code [modified] Pin
johan313127-Jun-06 23:33
johan313127-Jun-06 23:33 
QuestionCompact framework drawing Pin
os0027-Jun-06 23:30
os0027-Jun-06 23:30 
QuestionCreate folder Pin
SysJey27-Jun-06 22:37
SysJey27-Jun-06 22:37 
AnswerRe: Create folder Pin
Robert Rohde27-Jun-06 22:57
Robert Rohde27-Jun-06 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.