Posts

PROGRAM TO IMPLEMENT FIFO DISK SCHEDULING ALGORITHM IN C

Image
/*     FCFS Disk Scheduling Algorithm    Created by: shobabu */ #include<stdio.h> #include<conio.h> void main() { int queue[100],n,head,i,j,k,seek=0,diff; float avg; // clrscr();   printf("*** FCFS Disk Scheduling Algorithm ***\n"); printf("Enter the size of Queue\t"); scanf("%d",&n); printf("Enter the Queue\t"); for(i=1;i<=n;i++)   {     scanf("%d",&queue[i]);   }   printf("Enter the initial head position\t"); scanf("%d",&head); queue[0]=head; printf("\n"); for(j=0;j<=n-1;j++) {     diff=abs(queue[j+1]-queue[j]);     seek+=diff;     printf("Move from %d to %d with Seek %d\n",queue[j],queue[j+1],diff);   } printf("\nTotal Seek Time is %d\t",seek);   avg=seek/(float)n; printf("\nAverage Seek Time is %f\t",avg);   getch(); }

PROGRAM TO IMPLEMENT SSTF DISK SCHEDULING ALGORITHM IN C

Image
/*    SSTF Disk Scheduling Algorithm    Created By: shobabu */ #include<stdio.h> #include<conio.h> #include<math.h> void main() { int queue[100],t[100],head,seek=0,n,i,j,temp; float avg; // clrscr(); printf("*** SSTF Disk Scheduling Algorithm ***\n"); printf("Enter the size of Queue\t"); scanf("%d",&n); printf("Enter the Queue\t"); for(i=0;i<n;i++) {     scanf("%d",&queue[i]); } printf("Enter the initial head position\t"); scanf("%d",&head);   for(i=1;i<n;i++)   t[i]=abs(head-queue[i]); for(i=0;i<n;i++)   {     for(j=i+1;j<n;j++)     {       if(t[i]>t[j])       {         temp=t[i];         t[i]=t[j];         t[j]=temp;         temp=queue[i];         queue[i]=queue[j];         queue[j]=tem...

get the new moto g5s plus

Image
get the new moto g5s plus by clicking the below link http://amzn.to/2wUSzmD

moto g5s plus

Image
Best phone with all advanced features best dual camera  metal body Full specifications operating system Android™ 7.1, Nougat system architecture/processor Qualcomm ®  Snapdragon™ 625 processor with 2.0 GHz octa-core CPU and 650 MHz Adreno 506 GPU memory (RAM) 4 GB storage (ROM) 64 GB internal, up to 128 GB microSD Card support dimensions Height: 153.5 mm Width: 76.2 mm Depth: 8.0mm to 9.5 mm weight 168 g display 13.97cm (5.5”) Full HD 1080p (1920×1080) 401 ppi Corning™ Gorilla™ Glass 3 battery All-day battery (3000 mAh) TurboPower™ for up to 6 hours of power in 15 minutes of charging * water protection Water repellent nano-coating § network 4G LTE (Cat 7) UMTS/HSPA+ GSM/EDGE bands (by model) Moto G 5 S  Plus – XT1804 GSM/GPRS/EDGE (850, 900, 1800, 1900 MHz) UMTS/HSPA+ (850, 900, 1900, 2100 MHz) 4G LTE (B1, 3, 5, 8, 28, 40)† SIM Card ...

power sharing

Image
Innovative Gadget The Pebble PowerShare-Z (Blue) is a unique gadget that allows you to transmit the battery power of any OTG-enabled smartphone/tablet into your iPhone/smartphone/tablet when its battery has run down completely. This PowerShare-Z features two micro USB connectors as well as consists of one iPhone connector to enable battery sharing between a range of your smartphones/tablets and iPhones that support the OTG function. Self-Adjusting Capabilities, Protective Circuit You need not worry about the input and output current with this PowerShare-Z gadget that allows auto-adjustments as per the specifications of the synced devices. There will also be a dependable safeguarding from overcharging and discharging possibilities owing to the built-in protective circuit in the PowerShare-Z gadget. Silicone Cover The soft, silicone cover of this PowerShare-Z gadget keeps it shielded from dust, dirt, break, falls, wear and damage. Designed with an appealing build and with ...

Good News for Xiaomi Users- Some Xiaomi Phones will Get the Android Oreo 8.0 Update

Image
There is all over the excitement about the new Android Oreo 8.0 update and most of the main companies have provided an update for their smart phones and some are trying to avail as soon as possible. Xiaomi is also in the race of providing the Android update to their devices. Before we will get to the list of the Xiaomi’s smartphones which will get the update let us know about the new Android 8.0 Oreo features. It can also be called as a multi window which is added in the Android 8.0 Oreo. By using this feature users will be able to use the two applications on the same screen which will be divided into two portions i.e split screen. For example, if you are watching a video and you have to text message someone uses this feature. Background Limit The main plus point of the Android Oreo is this feature of Background Limit. By this feature, your device will not use the memory of the applications running in the background. Which helps in smooth performance by freeing more RAM of th...

Here's the process to how to get jio phone

Finally, the long wait for Jio Phone is coming to an end today i.e. August 24 as Reliance will officially open bookings for the Reliance 4G feature phone. Ahead of booking, Reliance Jio has launched a massive rollout exercise for the Jio Phone with plans to deliver a lakh handsets every day to retailers and a target of selling around 4-5 million phones a week.  Here is the complete process how people who are willing to buy Jio Phone will finally get the handset:- - Reliance Jio has started reaching out to retailers about the handset and has begun educating them about the delivery process - The company’s target is to deliver a lakh of handsets per day, which will be done though Reliance Digital outlets and Jio Centres as well as other touch points - Jio Phone will be marketed under RIL’s Lyf brand and will be sold through Reliance Digital stores as well as Jio Centres. Reliance Digital operates a chain of consumer electronics stores through a network of 1,996 outlets ...