Question about Computers & Internet

1 Answer

Delay function in 'C'

Source code for the Delay function in 'C'

Posted by on

  • Teis Thomsen
    Teis Thomsen May 11, 2010

    Could you bee a bit more specific?




1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.


    An expert whose answer got voted for 500 times.

  • Master
  • 2,110 Answers

First #include <dos.h>
then use delay("millisecond")

Posted on Nov 29, 2008

1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

How can I program delay and distortion in two serial numbers in g1xn

I'm sorry but this is not a warez site...We do not give out activation keys or access codes...

Jun 22, 2012 | Computers & Internet


How to divide bandwidth in squid

What is Bandwidth throttling :

Consider we are having 512Kbps Internet connection line. And the system administrator wants to divide the whole bandwidth into two sections. Read More One for the normal users and the other for special users who need high speed internet connection. So that all the normal users can use 256 Kbps and the special users can use the remaining 256 Kbps. So in this case you have to make a bandwidth throttling to differentiate the whole single pipe line into two sections. This can be achieved using squid proxy server.

Squid main configuration file ----- /etc/squid/squid.conf
Squid log file ----- /var/log/squid/access.log
Cache log file ----- /var/log/squid/cache.log

Bandwidth throttling in squid is done using Delay Pools. Delay pools uses bucketing system.

Throttle Calculations
512Kbps(Kilo bits per second) -----> 64Kbytes -----> 64000bytes
256Kbps -----> 32Kbytes -----> 32000bytes
128Kbps -----> 16Kbytes -----> 16000bytes
64Kbps -----> 8Kbytes -----> 8000bytes

Points to remember in Delay Pools:
There are basically three things to note, they are - delay pools, delay class, delay parameters.

Delay pool --- Defines how many pools we want to use
Delay Class ---- Defines type of the pool you are going to use.
Delay Parameter � allots the restrictions and fill rate/maximum bucket size.

As I have said previously in this documentation delay pools uses bucketing system.
Now there are three types of buckets

Class 1 pool: A single aggregate bucket, shared by all users
Class 2 pool: One aggregate bucket, 256 individual buckets
Class 3 pool: One aggregate bucket, 256 network buckets, 65,536 individual buckets

If you still have any problem in the above syntax (ie) aggregate, network and individual buckets to understand, then here is a simple syntax/example for all these

For Class 1 delay pool
delay_parameters 1 32000/32000

For Class 2 delay pool
delay_parameters 1 48000/48000 48000/48000

For Class 3 delay pool
delay_parameters 2 32000/32000 8000/8000 16384/16384

Example Setup:
One 512Kbps pipe line. We want to distribute the whole pipe line into 2. One for normal users and other for special users as follows
Normal users --- 128 Kbps
Special Users --- 384 Kbps

Configuration Setup File /etc/squid/squid.conf:
Before getting into the delay pools setup first create the acl(Access Control List). Through acl you can define rules according to your requirements. Find the Access Control section in the squid.conf file.
Here is an example:

acl superusers src
acl mynetwork src

Here in the above example only three users are special users who need 256Kbps bandwidth which are listed in the specialusers label and the whole network including he special users are labeled as mynetwork.

After creating the users you have to allow them to access the internet. Below line specifies for allowing the mentioned labeled users.

http_access allow superusers
http_access allow mynetwork

Now comes the funny part Delay Pools. Here We will deal with a basic example for delay pools.

The example is as follows: We are having 512Kbps pipe line connection. We want to divide it into segments one for the special users, web servers and the other for the normal users in the organization. The special users and the web servers are given 384Kbps speed and the remaining 128Kbps for the normal users.

Delay Pools for super users:
Check for the delay pools section in the squid.conf file.
Start the configuration for delay pools as follows
########## Delay Pools############

delay_pools 2

As described above we have to create 2 delay pools, one for each delay class.
######### Defining Delay pool 1 in class 2 #########

delay_class 1 2
delay_parameters 1 48000/48000 48000/48000
delay_access 1 allow superusers

The first line specifies Delay Class which defines delay pool 1 for the delay class 2.

Why we are using delay class 2 here?

The first part on the second line ie �1� defines the pool One(1)

The second part on second line defines the aggregate 48000/48000(restore/max). where restore is the number of bytes (not bits - modem and network speeds are usually quoted in bits) per second placed into the bucket, and maximum is the maximum number of bytes which can be in the bucket at any time.

The third part on second line is individual buckets again 48000/48000(restore/max). All the special users and the web servers should obtain the same speed of 384 Kbps.

The third line allows the super users to fall in that bucket.

######### Defining Delay pool 2 in class 3 #########

Delay Pools for normal users:

delay_class 2 3
delay_parameters 2 32000/32000 8000/8000 16384/16384
delay_access 2 allow !superusers

The first line specifies Delay Class which defines delay pool 2 for the delay class 3.

The first part on the second line ie �2� defines the pool Two(2) of class three(3)

The second part on second line defines the aggregate 32000/32000(restore/max) as aggregate (ie for whole).
Note : - If you use -1/-1. �-1� indicates �unlimited�.

The third part on second line is network bucket. We have defined here 8000/8000 .

The fourth part on second line is for individual.

The third line specifies to throttle all the users except the super users.

How to check:
First set proxy settings in your browser as follows:
Go to any client machine and open an IE(Internet Explorer). Select "Tools" menu then select "Internet Options" then select "Connections" tab. After that select the "LAN Settings" button, you will get a new pop-up window there you select "Use proxy server for your LAN" check box and finally give your squid proxy servers ip address and the port on which the squid proxy server is configured. Now press "OK" and again press "OK". Cloase the window and now open a new window.
Second Check by downloading any large file

Start to download any lage file not less than 10MB size. Because when ever you download any small file it used to download it quickly. When you start downloading large file at first if you note some starting bytes of the file gets downloaded quickly and later it gets slowed down.

Keep a note on the download pop-up box which shows the speed limits in "kbps". When we start downloading note on the pop-up box the speed limits in kbps shows high value and then slowly gets decreased. This means when you start downloading the bucket gets filled and slowly it decreases and becomes stable to the specified limit in Kbps according to the configuration. Remember again as i told restore value is used to set the download speed, and the max value lets you set the size at which the files are to be slowed down from.

on Apr 24, 2010 | fedora Linux Operating System

1 Answer

I have the roland pc 200 mk11 . We have set it up now ... on a laptop and there is a sound delay .... Can you please assist us with this problem ? is it a setting problem ? Reno

The sound delay that you're hearing is often described as latency. It's just a by-product of having a lot of things for your keyboard to go through. Generally speaking, it's not really possible to eliminate latency completely but there are some ways to deal with it. In your case, I would suggest plugging your headphones into your keyboard directly instead of connecting them to your computer or any other pres/amps. Depending on your hardware, you may be able to run your keyboard with lower latency but getting that going will depend specifically on your hardware and what drivers are provided.

Apr 04, 2011 | Computers & Internet

1 Answer

I converted an MP4 file to AVI and when i play the movie on quicktime the audio is out of sync and the movie plays like its on fast forward. i am trying to upload it on youtube and when i put it on youtube...


Give this a try:

Download the latest version of AVI audio sync tool:

First of all, make a backup copy of your avi file (this is very important!).

Step 1. Unzip file. Launch YAAI.exe , "Open AVI" dialog will appear.

Step 2. Find and open your AVI file.

Step 3. Click on "Sync Audio" tab. Small video player will pop up.

Step 4. Now, adjust audio delay or frame rate (FPS) using sliders or appropriate buttons.

Click Apply. Video player will start playing your file with changed settings automatically. You can adjust and apply these parameters several times to pick up necessary values for audio delay or FPS. So, try to experiment and to set appropriate audio delay or to change FPS (frames per second) settings for your avi file.

Step 5. Finally, close YAAI tool. When it asks the question: "Do you want to keep the changes?", click Yes.

Hope this helps.

Feb 02, 2010 | Computers & Internet

2 Answers

Windows XP Home Ed. SP-3 and Windows Firewall

off your windows firewall settings. use kaspersky 2009 for your virus guard. 

Jul 20, 2009 | Microsoft Windows XP Professional SP2

2 Answers

I need a program of cpu scheduling using C++ please help me out it consit of FCFS,SJF and RR..

// crt_clock.c // This example prompts for how long // the program is to run and then continuously // displays the elapsed time for that period. // #include <stdio.h> #include <stdlib.h> #include <time.h> void sleep( clock_t wait ); int main( void ) { long i = 6000000L; clock_t start, finish; double duration; // Delay for a specified time. printf( "Delay for three seconds\n" ); sleep( (clock_t)3 * CLOCKS_PER_SEC ); printf( "Done!\n" ); // Measure the duration of an event. printf( "Time to do %ld empty loops is ", i ); start = clock(); while( i-- ) ; finish = clock(); duration = (double)(finish - start) / CLOCKS_PER_SEC; printf( "%2.1f seconds\n", duration ); } // Pauses for a specified number of milliseconds. void sleep( clock_t wait ) { clock_t goal; goal = wait + clock(); while( goal > clock() ) ; }

Mar 22, 2009 | Computers & Internet

1 Answer

1 minute delay between windows xp splash screen and log on screen

try to to remove staru up programs that are not necessary...and modify the enableprefetcher in registry to value 1

Dec 08, 2008 | Computers & Internet

1 Answer

Multikey secure multimedia proxy using ARPS-java source code

Because of limited server and network capacities for streaming applications, multimedia proxies are commonly used to cache multimedia objects such that, by accessing nearby proxies, clients can enjoy a smaller start-up latency and receive a better quality-of-service (QoS) guarantee-for example, reduced packet loss and delay jitters for their requests. However, the use of multimedia proxies increases the risk that multimedia data are exposed to unauthorized access by intruders. In this paper, we present a framework for implementing a secure multimedia proxy system for audio and video streaming applications. The framework employs a notion of asymmetric reversible parametric sequence (ARPS) to provide the following security properties: i) data confidentiality during transmission, ii) end-to-end data confidentiality, iii) data confidentiality against proxy intruders, and iv) data confidentiality against member collusion. Our framework is grounded on a multikey RSA technique such that system resilience against attacks is provably strong given standard computability assumptions. One important feature of our proposed scheme is that clients only need to perform a single decryption operation to recover the original data even though the data packets may have been encrypted by multiple proxies along the delivery path. We also propose the use of a set of encryption configuration parameters (ECP) to trade off proxy encryption throughput against the presentation quality of audio/video obtained by unauthorized parties. Implementation results show that we can simultaneously achieve high encryption throughput and extremely low video quality (in terms of peak signal-to-noise ratio and visual quality of decoded video frames) for unauthorized access.

Oct 16, 2008 | Computers & Internet

1 Answer

Slow in boot up

MAKE YOUR MENUS LOAD FASTER This is one of my favourite tweaks as it makes a huge difference to how fast your machine willMAKE

This is one of my favorite tweaks as it makes a huge difference to how
fast your machine will 'feel'. What this tweak does is remove the slight
delay between clicking on a menu and XP displaying the menu.

Go to Start then Run
Type 'Regedit' then click 'Ok'
Find "HKEY_CURRENT_USER\Control Panel\Desktop\"
Select "MenuShowDelay"
Right click and select "Modify'
Reduce the number to around "100"
This is the delay time before a menu is opened. You can set it to "0" but
it can make windows really hard to use as menus will open if you just look
at them - well move your mouse over them anyway. I tend to go for anywhere
between 50-150 depending on my mood.

Aug 04, 2008 | Microsoft Windows Vista Ultimate Edition

1 Answer

Windows XP shutdown

The computer is just doing it's internal diagnostics before it shuts down. This uses fairly little amount of physical memory. Every computer handles it differently depending on your configuration. If the computer does shut down on it's own....there is no real problem present.

Feb 22, 2008 | Microsoft Windows XP Professional With...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

34 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers


Level 3 Expert

5660 Answers


Level 3 Expert

98694 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides