Im having trouble implementing this Queue simulation. This simulation basically estimates how long a student has to wait in line for lunch at my high school.I get the following messages when trying to compile[C++ Error] davislunch.cpp(30): E2034 Cannot convert 'line *' to 'line::node *'Heres the sou ...
I have a code that uses queue in c++ and 3 class Message, MessageSender, and MessageReceiver to express queue content. The program runned but it expressed wrong output as I hope. I inputted 3 message object but queue expressed no messages received. Please help me find errors. I think this may occur ...
I am writing code to simulate a queue at a bank, which calculates the average wait time of all customers that enter the queue.I'm getting a STATUS_ACCESS_VIOLATION at line 56 of program3.cpp. I've had this error before and I'm pretty sure it happens because of an attempt to act on a NULL value, but ...
Is anyone who have resources for static memory queue implementation in c???? ...
Define a class Queue_time that represents a queue of Time objects (from our textbook) by keeping its elements in a dynamically allocated array (with maximum capacity) and make the queue as a "circular array" (the first element follows the last one).Supply the "big three" memory m ...
i made this Queue Program in c and its working good.. But I want to make it circular Queue please give some ideas..# include <stdio.h># include <conio.h># include <stdlib.h># include <string.h># define QSIZE 5typedef struct{int head,tail;char names[QSIZE][30];}QUEUE;void enqu ...
It has been a while since I last logged on. It has been a while since I really needed any major help in programming. But I am here now and I do need a bit of help.Let me start off by saying that I have tried to do this on my own. I have been trying for over a week, and I have been banging my head ag ...
i have successfuly implemented my CriticalSection.thanks for all the help.however, this solution is not good enough.i want to implement a Queue now. yes, a queue works within a critical section and implement using C.some1 pls enlighten me and advicethank uSignature (up to 100 characters) You may use ...
I have some troubles in translating this exercise that I have in the University in code(in C++ or any other language). Has anybody seen something like that? Could anybody offer me some advice? The problem is the following:Suppose you have a queue that has a limited number of positions N, and there a ...
My basic problem is that I'm having a hard time implementing a Pthread that consists of a round robin dequeuing 4 arrays consisting of ints. Followed by a Pthread that creates random numbers with which to enqueue them with. I've written most of the code for the queue itself and I've read up a lot on ...
I think this is where this belongs as its partly databases as well ... if not then hopefully someone can point me in the right direction.Here's what I'm planning:To familiarize myself a little more with mySQL and C++ and how to work with both of them to create a finished program is my goal of this l ...
Can anybody help me on this problem:I am writing a simulation program with several files. In a header file, I declared e global variable in hope that all other files could use it. so i put down: #define size 100 int memory[size]; in the header file memory.h. However, there are two seperate C files u ...
Can anybody help me on this problem:I am writing a simulation program with several files. In a header file, I declared e global variable in hope that all other files could use it. so i put down: #define size 100 int memory[size]; in the header file memory.h. However, there are two seperate C files u ...
A pharmacy needs to automate drug inventory management system. Every drug has chemical Name, Chemical Composition, date of manufauturing, expiry date, and courtry of origin, quantity, category and others.the pharmacy has a policy to dispose expired drug before use. however, it is not an easy task to ...
Can anyone tell me why this doesn't work in VS2008? I've commented out the #includes and whatnot so you can paste it into a single .cpp file and run it.Here are my errors:Quote ... 1>test.obj : error LNK2028: unresolved token (0A000320) "int __cdecl eval(class Tree<struct InfoNode> ...
Please help me with suitable code snippets to simulate a 2-server queuein C. ...
I am a newbie in C programming. I have written a program which has a separate function to send messages to 2 neighbours in the same network. This function is called from the main program. Also I have a thread which is created by the main function. The purpose of the thread is to listen for incoming ...
I'll be greatful if someone tell me how to declare the preiority queue in c++ and also tell me the syntax that how we can put a node in a preority queue. ...
any body can help me i need a source code for a simulation of elevator in vb or any single-queue, multi-queue simulation ...
How can I remove a message queue from c++ code, as ipcrm does it from ther shell terminal ...
Does anybody know the table that gives the list of items in the OUT queue for each client like we have C$IN_MESSAGES for IN Queue and C$EQ for Error queue. ...
Does anybody know the table that gives the list of items in the OUT queue for each client like we have C$IN_MESSAGES for IN Queue and C$EQ for Error queue. ...
we have set up 2 queues:- a source queue q1 on Database A- a target queue q2 on Database B (in the same schema name as in A)- Enqueue/dequeue works on both databases individually.- We have set up a remote subscriber on B using DBMS_AQADM.add_subscribersubscriber_agent := SYS.aq$_agent (p_subscriber, ...
we have the following problem with AQ propagation on 10g (I placed a thread in the starms section but I think this is a better section)we have set up 2 queues:- a source queue q1 on Database A- a target queue q2 on Database B (in the same schema name as in A)- Enqueue/dequeue works on both databases ...
anybody tried timer queue in c# before? it shall be sth like this:i have a lot of events with a time stamp registered with a queue, at the right time, the event will be called.it is not feasible to implement this with threading pool, becoz i shall not allocate one thread for each event, which may be ...
all, i'm learing jquery and i would to improve and speed up the way Iwrite code.I am currently doing tests on "queue","animate" ,but i know that my approachis wrong, i write a lot of lines of code aware that there is a method moreaccurate and fast to do it.Here a test http:// ...
we have a project due that involves reading in data from a file which is a 30x20 grid consisting of 30 processes each of which have 10 CPU bursts and IO bursts. From this we are supposed to implement FCFS, SJF, RR and a multi-level feedback queue in C++. From this we solve throughput, CPU utilizatio ...
The Multi-thread Thread was closed. Sorry for posting here, though!Hello!I'm having an assignment to simulate SSTF (shortest seek time first) using Java concurrency. Here is my code.Can someone look at the code and tell me how to correct the waitTime for each process. As you'll see all the processes ...
I'm trying to make it so that my ^ operator is right justified within this binary expression tree.For example, 2^3^4 should be evaluated as 2^(3^4). So I should get 2^81, instead of the usual 2^12.Here is the code I have so far. Everything works, except the ^ is still left associative. I know this i ...
when i m running wireless simulation that give me this type of error. so please give me guide how to solve this. this error is in running mixim1.2 framework in omnet++4.1.now i m putting the exact error. when i m running simulation that show me.ERROR:OMNeT++ Discrete Event Simulation (C) 1992-2010 A ...
Well, so if I use static initialization blocks to access another static data inside another class:public class StaticTestA {public static Queue queue = new LinkedList();static {System.out.println("A start");StaticTestC.queue.add("A");StaticTestA.queue.add("A");StaticTes ...
I am working on a piece of code where I want to make some publicobject instantiations private (I don't know how to better word it).The part I am having trouble with is how to keep one copy of theobjects being passed around. Should I declare them static? I waswondering if anyone can give me any advic ...
I don't know what's wrong with this program .. why does it give me errors:Code:#include <iostream>using namespace std;int time_quantum;class node{public:node *next;char name;int exe_time;node() {next = NULL;}node(node *next1 = NULL, char name1, int exe_time1){next = next1;name = name1;exe_time ...
I need some help coding BFS.Lets say that I have a tree like below--1--->-----------A----------------2-->----B---C----D----E--__________|_\______\____\---3-->---F--G--------H----II know that BFS checks in this order: A->B->C->...->H->II also know that to make that so I need t ...
Torque is a batch scheduling system that is often used on clusters. I find it handy to run it on my local machine so I can test run some of my scripts before going on to the cluster. So I started out with an apt-get install torque* and really got into some nasty bugs. Here is a how to for a smoother ...
So, I was trying to export a schema out of a newly installed 10.1.0.4 instance, something I've done repeatedly in a 10.1.0.3 instance, using the following parmfile [oracle@linux-test transport]$ more expdp_audits.par SCHEMAS=auditsLOGFILE=expdpdvlp_audits.logDUMPFILE=expdpdvlp_audits.dmpDIRECTORY=dp ...
while using datapump to import a big schema to my database and after importing the tables ,indexes and while the import is in the gathering statistics step the import ended and gives me this error ********************* ORA-39065: unexpected master process exception in RECEIVE ORA-39078: unable to de ...
I'd like to write a small app which runs "in the background" and logs whenever an app gets the focus / gets "activated" to a textfile.By "activating" I'm not refering to the initial start of an app but more to clicking its window and giving it the focus.So e.g. the log ...
I've used the scheduler to export, and it's been running fine until recently. My export script:declareh1 NUMBER;beginbeginh1 := dbms_datapump.open(operation => 'EXPORT',job_mode => 'FULL',job_name => 'FULLDUMP_EXPORT_ORAPROD3',version => 'COMPATIBLE');end;begindbms_datapump.set_parallel( ...
I have a performance problem with Streams. In this case, we have Oracle Streams installed between two schemas of the same database (transactional live & the staging schemas)hence we have Apply, Capture process & we do not have propagation since this lie in the same db. The Db version is 10g ...
folks. I'm a C coder, but my current project requires Java. So this one is probably fairly easy =]I need to post a key (ENTER to be exact) to a Process that was returned from a call to RunTime.getRunTime().exec(...) I cannot write() the char to the process's getOutputStream() because it specifically ...
Using the following parfile SCHEMAS=timex,shared,ptsDIRECTORY=dpump_dir_nasDUMPFILE=expdptstfull_20060326.dmpLOGFILE=impdpdevtest_20060326.log I received an error during IMPORT. We don't receive this in our other environments, and my privileges are the same: [oracle@oken transport]$ impdp forbesc/** ...
could you plz help me to solve below errors which are coming while doing import with impdp command in oracle 10g 10.1.0.4.0 os: Red Hat Enterprise Linux ES release 4ORA-06502: PL/SQL: numeric or value error: character string buffer too smallORA-06502: PL/SQL: numeric or value error: character string ...
I am trying to import schema from qc to development. after importing i got the following error attached below:Processing object type SCHEMA_EXPORT/TABLE/GRANT/WITH_GRANT_OPTION/OBJECT_GRANTProcessing object type SCHEMA_EXPORT/TABLE/GRANT/CROSS_SCHEMA/OBJECT_GRANTProcessing object type SCHEMA_EXPORT/ ...
(29th April) SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 29 14:59:56 2009Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionWith the Partitioning, Data Mining and Real Application Testing options Co ...
The data pump full import job hung, continue client also hung, all of a sudden the window exited.;;; Import> status;;; Import> help;;; Import> status;;; Import> continue_clientORA-39065: unexpected master process exception in RECEIVEORA-39078: unable to dequeue message for agent MCP from ...
Any suggestion please? I've got this error.ORA-39095: Dump file space has been exhausted: Unable to allocate 8192 bytesJob "SYSTEM"."SYS_EXPORT_SCHEMA_02" stopped due to fatal error at 16:38:39Job SYS_EXPORT_SCHEMA_02 has been reopened at Friday, 16 December, 2005 16:41Restarting "SYSTEM"."SYS_EXPOR ...
Somebody knows how to implement Oracle Advance Queue from C# using PL/SSQL and ODP.NET? I can't find a single example or resource with concrete examples in C# or VB.NET. Ideally I would like some examples on how the enqueue and dequeue messages with simple types (XMl/string).I have dont this in SQL ...
Thanks for your feedback!#!/bin/shTITLE="=== DEBIAN UPDATE MANAGER ==="AUTHOR="@2005-07 ghostintheshell"VERSION="v.2005.09.29"##### To do:##### - the to do list o_0'### DECLARATIONS### ------------## OPTIONS (system)#the sources fileSOURCES="/etc/apt/sources.list ...
I've been a Windows user for many years, but now I want to escape from the dark side and experience an alternative like Ubuntu. I've installed it and now I have a problem: I need to install the drivers for the 3Com 3C940 Gbit LAN of my motherboard (an Asus P4C800), but I don't know how to do it. The ...