answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What do you mean by prime a loop?

prime a loop is that how mach time it executed either max time or minimum time

How do you get the top down on a 1994 Chrysler lebaron V6?

you pull the two latches above the sun visors and then there is a button on the center console

How do you run multiple lines of code at once in c sharp?

Threading. However, unless you have multiple cores, or i3, i5, i7, you cannot execute multiple lines at once. (one core per process, a thread must be within a process, that's the concept. But you have no control over them). The codes will be the same. the actuall runtime varies because of the CPU.

What is deadlock and solution to it?

A deadlock occurs in multi-threaded applications whenever a thread attempts to acquire a lock that can never be unlocked. Locks are necessary in order to prevent concurrent threads from accessing a shared resource while that resource is being modified. Once a thread acquires a lock, all others must wait until the lock is released. In order to prevent any unnecessary waiting, it is vital that each thread acquire a lock immediately before operating upon a shared resource, and to immediately release that lock as soon as it has finished with the resource.

Sometimes it is necessary to operate upon two (or more) resources. Ideally, those resources would be combined into a single resource with just one lock, but it is not unusual to have independent resources that are only occasionally dependant upon each other, so it makes sense to keep them as independent as possible and apply the dependency only when it is actually needed.

When we need to create a dependency to perform an operation it is vital that all the independent locks be applied in the same sequence, regardless of which order the operations must be performed. This means that we may end up holding onto locks far longer than is strictly necessary, but it is the only way to prevent a deadlock.

For example, if we have two threads, A and B, and two resources, X and Y, such that A acquires X followed by Y while B acquires Y followed by X, then we could easily end up in the situation where A acquires X while B acquires Y. A is now waiting for B to release Y, but B is waiting for A to release X. They are deadlocked. Had they both acquired X and Y in the same order, the deadlock would have been avoided.

Another situation where a deadlock often occurs is when a recursive function acquires a lock but doesn't release that lock before calling itself. The new instance cannot lock the resource because it is already locked, thus the function has deadlocked itself. The solution to that problem is to use a recursive lock rather than an ordinary lock, thus allowing a single thread to acquire the lock as often as required. Once a recursive lock is acquired, each subsequent lock by the same thread increments an internal counter while each unlock decrements that counter. When the count is zero the lock is released.

What programming language was Ms Access written in?

Microsoft Access was developed on C#.

Source: MSDN (Microsoft Developer Network)

How do you Open Local File in AS3?

set it up as a URL but put the file location in instead and it will open i, you will need to change the \ to / or the other way around i forget :)

A small program that can be downloaded by a website to your computer?

Please specific the question. Because I'm about to say for the answer: any.

How do you create a number pad in visual basic 6 with programming that inserts the numbers into a textbox named txtKeycode?

Only one button needs to be created in the first place, with its caption set as whichever number between 0-9 that you want. After it has been set to the appropriate size, the button needs to be copied, so that the index property will appear. It would help to set the index to the same number as the caption, to avoid confusion. The code, as it turns out, is relatively simple:

Private Sub Form_Load()

Dim index As Integer

End Sub

Private sub cmdKeyPad_Click(index As Integer)

txtKeycode.Text = txtKeycode.Text & cmdKeypad(index)

End Sub

What are the values of each bit contributing to the value of the number in octal number system?

Each octal digit is represented exactly by 3 bits:

0 = 000

1 = 001

2 = 010

3 = 011

4 = 100

5 = 101

6 = 110

7 = 111

Using the normal binary representation of the number.

With a string of octal digits, each digit is the next 3 bits, for example the octal number 04751 is:

04751 = 000 100 111 101 001 in binary

The spaces are for ease of reading, showing each octal digit in binary; without any spacing it becomes: 000100111101001

By changing the spacing to: 000 1001 1110 1001 means it can be easily read in hexadecimal as 0x09e9.

How do you set sio scan model 38229?

http://skyscan.info/content/ lists manuals for Skyscan (SIOSCAN is the temp transmitter). 38229 not listed but other units may be similar.

How can you tell what program was used to develop a website?

The best way to tell which programming language was used is to look at the file extension of the page. For example, pages written in Classic ASP have an extension of .asp, ASP.net is .aspx.

Here is a brief list of programs and their file extensions

Java Server Pages =.jsp

PHP is .php

Coldfusion is .cfm

PERL is .pl

HTML is .htm or .html

Dynamic HTML is .dhtml

Cascading Style Sheets is .css

What is the binary code for mike?

01101101011010010110101101100101

Assuming you are using ASCII encoding, using 8-bit characters on a Big Endian computer architecture, then it would be:

01101101 01101001 01101011 01100101

On a computer using Little Endian byte-order:

01100101 01101011 01101001 01101101

The binary representation of a character is heavily dependent on the particular character encoding method being used (ASCII was originally the most common encoding, with UTF-8 now superseding it)

Where can you download FalseFlesh program for free?

Try this link

http://rapidshare.com/files/159877244/FalseFlesh.exe

Is hackthissite.org safe?

It depends what you mean by safe. Any site you download files from has the potential to put something on your computer that you dod not want. You must get, use and keep up to date so type of virus checker and if you are on Windows XP SP2 or earlier a two way firewall. Some type of integrated security system should be mandatory if you are going to web sites, sending and receiving IM, RSS, Blog, sending and receiving email, interacting with anything online. The best advise I ever heard about email is never open an email unless you know who sent it and the person is trust worthy but there are virus that infect systems and send themselves to the first 50 people in your address book or everyone in your address book. I have seen Phishing scams that were literally perfect except for the URL or IP address. If you have to ask, don't go.

What are factors to consider when choosing sorting method?

There are lots of factors to consider. Some important ones are what are the best, worst, and average times it will take for the sorting method to complete given a certain amount of elements to sort. Also important is how much memory the algorithm will use, what he distribution of the data it is working on is, and whether you want the algorithm to ensure that if stopped part way though sorting that the data is not in a less sorted state than when it started.

What is windows7.iso?

An ISO file is a CD-ROM or DVD image file. They are used to make backups of optical discs and to distribute discs across the internet. ISOs can be mounted in virtual drives or burned to disc using image burning software. The term ISO is actually the recognised abbreviation for the International Organization for Standardization (this abbreviation was chosen simply because the abbreviations in the recognised languages of English, French and Russian would all be different). CD-ROM uses the ISO 9600 file system, thus all images became known as ISOs, regardless of what format they used.

Windows7.iso is therefore an image of the Microsoft Windows 7 Operating System installation disc.

Disadvantage of writing OS in high level language such as C?

Nothing. Every modern OS is written in C, except for some little special parts (like interrupt-handling) that are written in Assembly.

How did Ernest Rutherford deduce that he had observed a transmutaion in his cloud chamber?

While studying the passage of high-speed alpha particles (helium nuclei) through water vapor in a cloud chamber, Ernest Rutherford observed some long, thin particle tracks. These tracks matched the ones caused by protons in experiments performed earlier by other scientists.

Is jne a symbol for an assembly language?

In some assembly languages this is a machine operator, jump if not equal. It is a symbolic equivalent of that machine code.

It is more proper to say that 'jne' may be a symbolic machine code instruction in some assembly languages.

Why you are writing DETECT in computer graphics program?

because initgraph() automatically detect current available graphmode and load it on to the graphdriver.