Which of the following is true?
Select one:
In general, creation time of a process is faster than creation time of a thread within a program.
In general, communication between two independent processes is faster than communication between two threads.
Parent and child processes share same instruction counter.
Threads of a process can share data via global variables.
In a multithreaded process each thread shares the instruction counter of the process.

Answers

Answer 1

Answer:

2 3 and last one

Explanation:


Related Questions

Design a base class, Road, with the following members:
.
Attributes for storing the road's name, number of lanes, and maximum speed limit.
A three-parameter constructor to initialize the three attributes
Accessors and Mutators (Gets and Sets) for each attribute.
Input Validation: You should ensure that the number of lanes is always a value greater
than 0, and that the maximum speed limit is a value between 0 and 100 MPH. This input
validation should apply to both the 3-parameter constructor and the individual accessor
functions
A display function that prints the road's information in a single line format

Design a derived class, TollRoad, which inherits from Road. It should have the following members:
.
An attribute for storing the toll for using the road.
A 4-parameter constructor to initialize the three attributes of the base class, as well as
the toll
Accessor and Mutator methods for the toll.
Input Validation: You should ensure that the toll is a value greater than 0.0. This validation
should apply to both the 4-parameter constructor as well as the individual accessor
An overridden display function that displays the information of the TollRoad in a two-line
format, where the first line displays basic Road information, and a second line specifies
the current toll

Answers

I've attached my Java implementation.

C#
1. Create a new class called StandardSale
2. Add three private fields to the class:
_salesDate, a DateTime
_amount, a double
_quantity, an integer
3. Also, add properties with get and set accessors for each field, call them SalesDate, Amount, and Quantity.
In the "set" accessors, use if/else to limit Amount and Quantity to positive values and
to limit SalesDate to dates on or after 1/1/2000.
Use "else" to set Quantity and Amount to 0 and SalesDate to 1/1/2000 if the input values are invalid.
4. Add a constructor so that all three fields can be populated when a StandardSale object is instantiated.
5. Add a method called TotalSale that returns _amount * _quantity as a double.

Answers

Answer:

Hhhhhhjjjjjjkiiiiioooooooooioi

Compare and contrast data warehouse and big data storage environments. Discuss the purpose, the data, the need for more than one BI data environment, whether these environments are complementary or competitive, and processing tools and methods used in the environments. Also include other items as you see fit. (15 points)

Answers

Answer:

The responses to the given question can be defined as follows:

Explanation:

The database engine is a large data store gathered from a wide range of sources within about an undertaking or Old to inform management decisions.

We study the database system and big data reasonably Information storage of Big Data is applied to the difficulty of storing data.

Big Data is a new term used to identify datasets due to the size and complexity. A database server is a given database category.

They are used to store huge quantities of data, such as analysis, historic or consumer data, but instead produce large reports and mines.

In the database system, the complexity of unstructured data is sung easily.

The challenge of big data is one of the most exciting opportunities for those decades to come.

A database server is a centralized relation server, where all the attractive data from different systems is gathered together.

They must wash and structure your data at the position of insertion before placing them inside a warehouse. This process is usually alluded to as ETL Extract, Transform, and Load.

The solution to the database system is helpful as the next step is clean and quick Big data and the data warehouse could only be a strong team to gain a strong range of new application scenarios.

However, they have to find a couple of changes to existing infrastructure, tools, and processes and incorporate large amounts of data into your existing world.

Its university and IT industry paid too much attention to Big Data.

Digital data is created or stored inside the computer world at a pace that exceeds the boundary range rapidly.

Upwards of two billion people were connected to the Internet globally. And more than five billion people own mobile telephones.

By 2020, the Internet typically connects 50 milliards of computers.

It will then be 44 times the predicted data output in 2009.

The information is transferred to the optical fiber and shared at supersonic speeds.

The amount of data, as well as the pace of the industry growth, increases because the information is transferred or exchanged at light speed on optical fiber and network devices.

njvekbhjbehjrbgvkheb

Answers

Answer:

shvajskzhzjsbssjjsusisj

any websites online to make $50 daily?​

Answers

Answer:

hmmm research some and find out because there are alot

Why do we use functions?
To stop the program from repeating.
To test for true and false.
To simplify code.
To ask the user for input.

Answers

to stop the program from repeating :)
To stop the program from repeating. That is the answer

Which of the following describes a characteristic of organic light-emitting diodes (OLEDs) used in clothing?

uniform

flexible

transparent

sizeable

Answers

Flexible

Hopes this helps!

Answer:

Yes the answer is flexible.

Explanation:

I took the test and got it right.

Identify the correct syntax used to write to a text file. a. file = open('My_data.txt', 'w') file.write('This file contains data') b. file = open('My_data.txt', 'w') file.write(100) c. file = open('My_data.txt', 'w') file.write([100, 200, 300]) d. file = open('My_data.txt', 'a') file.write(['hello', 'hi', 'hey'])

Answers

Answer:

file = open('My_data.txt', 'w')

file.write('This file contains data')

Explanation:

Required

The correct syntax to write to file

From the question, we understand that we are to write to file and not append to the file.

This implies that the access mode will be w which stands for write

The first line of (a), (b) and (c) is correct.

(d) is incorrect

Solving further,

Only values of type string (i.e. str) can be written to file

With this, we can conclude that:

(a) is correct because 'This file contains data' is of type string

(b) and (c) are incorrect because, in (b), the value is of type integer and in (c), the type is list

Code a Python program that uses a graphical user interface (GUI) to address a real-world problem. Within reason, you may choose to address any real-world problem that you would like; however, please only choose a real-world problem that is both safe and legal.

Answers

Answer:

Explanation:

The following is a simple GUI Python program that solves for the different variables in a Pythagorean theorem equation, which is a real-world problem that many students have to face on a daily basis. The output can be seen in the attached picture below. Due to technical difficulties, I have added the code as a txt file attachment.

When parameters are passed between the calling code and the called function, formal and actual parameters are matched by: a.

Answers

Answer:

their relative positions in the parameter and argument lists.

Explanation:

In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.

Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.

For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.

A parameter can be defined as a value that must be passed into a function, subroutine or procedure when it is called.

Generally, when parameters are passed between a calling code and the called function, formal and actual parameters are usually matched by their relative positions in the parameter and argument lists.

A formal parameter is simply an identifier declared in a method so as to represent the value that is being passed by a caller into the method.

An actual parameter refers to the actual value that is being passed by a caller into the method i.e the variables or values that are passed while a function is being called.

Write a function nexthour that receives one integer argument, which is an hour of the day, and returns the next hour. This assumes a 12-hour clock; so, for example, the next hour
after 12 would be 1. Here are two examples of calling this function:

>> fprintf('The next hour will be %d.\n',nexthour(3))The next hour will be 4.>> fprintf('The next hour will be %d.\n',nexthour(12))The next hour will be 1.

Answers

Answer:

The function in C is as follows:

int nexthour(int tme){

   tme = tme%12 + 1;

   return tme;

}

Explanation:

This defines the function

int nexthour(int tme){

Ths calculates the next hour using % operator

   tme = tme%12 + 1;

This returns the next hour

   return tme;

}

Write a class named Employee that has private data members for an employee's name, ID_number, salary, and email_address. It should have an init method that takes four values and uses them to initialize the data members. It should have get methods named get_name, get_ID_number, get_salary, and get_email_address. Write a separate function (not part of the Employee class) named make_employee_dict that takes as parameters a list of names, a list of ID numbers, a list of salaries and a list of email addresses (which are all the same length). The function should take the first value of each list and use them to create an Employee object. It should do the same with the second value of each list, etc. to the end of the lists. As it creates these objects, it should add them to a dictionary, where the key is the ID number and the value for that key is the whole Employee object. The function should return the resulting dictionary. For example, it could be used l

Answers

Solution :

class Employee:

   #Define the

   #constructor.

   def __[tex]$\text{init}$[/tex]__([tex]$\text{self, nam}e$[/tex],  ID_number, [tex]$\text{salary}$[/tex], email):

       #Set the values of

       #the data members of the class.

       [tex]$\text{self.nam}e$[/tex] = name

       [tex]$\text{self.ID}$[/tex]_number = ID_number

       [tex]$\text{self.salary}$[/tex] = salary

       self.email_address = email

#Define the function

#make_employee_dict().

def make_employee_dict(list_names, list_ID, list_salary, list_email):

   #Define the dictionary

   #to store the results.

   employee_dict = {}

   #Store the length

   #of the list.

   list_len = len(list_ID)

   #Run the loop to

   #traverse the list.

   for i in range(list_len):

       #Access the lists to

       #get the required details.

       name = list_names[i]

       id_num = list_ID[i]

       salary = list_salary[i]

       email = list_email[i]

       #Define the employee

       #object and store

       #it in the dictionary.

       employee_dict[id_num] = Employee(name, id_num, salary, email)

   #Return the

   #resultant dictionary.

   return employee_dict

Which is more important—book smarts or street smarts? Why? Which do you have more of?

Answers

Answer: book smart beacause book smart is intelligent and smart and learned the right thinks other than street smart people are unitelligent and incapable of achieving a higher education, but are more passionate and can usually find an answer to a problem through trial and error. We mostly have both cuz we learn in different ways

Explanation:

i hope this helps

brainliest??

Answer: book smart beacause book smart is intelligent and smart and learned the right thinks other than street smart people are unitelligent and incapable of achieving a higher education, but are more passionate and can usually find an answer to a problem through trial and error. We mostly have both cuz we learn in different ways

How do you answer a question that's already been answered?

Answers

there should still be a button that says answer

Develop a program working as a soda vending machine. The program should show the product menu with price and take user input for product number, quantity and pay amount. The output should show the total sale price including tax and the change. Organize the program with 4 functions and call them in main() based on the requirements.

Answers

Answer:

Explanation:

The following vending machine program is written in Python. It creates various functions to checkItems, check cash, check stock, calculate refund etc. It calls all the necessary functions inside the main() function. The output can be seen in the attached picture below.

class Item:

   def __init__(self, name, price, stock):

       self.name = name

       self.price = price

       self.stock = stock

   def updateStock(self, stock):

       self.stock = stock

   def buyFromStock(self):

       if self.stock == 0:

           # raise not item exception

           pass

       self.stock -= 1

class VendingMachine:

   def __init__(self):

       self.amount = 0

       self.items = []

   def addItem(self, item):

       self.items.append(item)

   def showItems(self):

       print('Items in Vending Machine \n----------------')

       for item in self.items:

           if item.stock == 0:

               self.items.remove(item)

       for item in self.items:

           print(item.name, item.price)

       print('----------------\n')

   def addCash(self, money):

       self.amount = self.amount + money

   def buyItem(self, item):

       if self.amount < item.price:

           print('You can\'t but this item. Insert more coins.')

       else:

           self.amount -= item.price

           item.buyFromStock()

           print('You chose ' +item.name)

           print('Cash remaining: ' + str(self.amount))

   def containsItem(self, wanted):

       ret = False

       for item in self.items:

           if item.name == wanted:

               ret = True

               break

       return ret

   def getItem(self, wanted):

       ret = None

       for item in self.items:

           if item.name == wanted:

               ret = item

               break

       return ret

   def insertAmountForItem(self, item):

       price = item.price

       while self.amount < price:

               self.amount = self.amount + float(input('insert ' + str(price - self.amount) + ': '))

   def calcRefund(self):

       if self.amount > 0:

           print(self.amount + " refunded.")

           self.amount = 0

       print('Thank you!\n')

def main():

   machine = VendingMachine()

   item1 = Item('Kit Kat',  1.5,  2)

   item2 = Item('Potato Chips', 1.75,  1)

   item3 = Item('Snickers',  2.0,  3)

   item4 = Item('Gum',  0.50, 1)

   item5 = Item('Doritos',0.75,  3)

   machine.addItem(item1)

   machine.addItem(item2)

   machine.addItem(item3)

   machine.addItem(item4)

   machine.addItem(item5)

   print('Welcome!\n----------------')

   continueBuying = True

   while continueBuying == True:

       machine.showItems()

       selected = input('select item: ')

       if machine.containsItem(selected):

           item = machine.getItem(selected)

           machine.insertAmountForItem(item)

           machine.buyItem(item)

           a = input('buy something else? (y/n): ')

           if a == 'n':

               continueBuying = False

               machine.calcRefund()

           else:

               continue

       else:

           print('Item not available. Select another item.')

           continue

if __name__ == "__main__":

   main()


[tex] \tt{Define \: hardware.}[/tex]

Answers

Answer:

The vital components of a computer system , which can be seen and touched , are called hardware .

examples

keyboard monitormouse

hope it is helpful to you

Answer:

Hardware is the collective term for the internal and external hardware that enables you to carry out key operations including input, output, storage, communication, processing, and more.

___________________

Hope this helps!

The smalled valid zip code is 00501. The largest valid zip code is 89049. A program asks the user to enter a zip code and stores it in zip as an integer. So a zip code of 07307 would be stored as 7307. This means the smallest integer value allowed in zip is 501 and the largest integer value allowed in zip is 89049. Write a while loop that looks for BAD zip code values and asks the user for another zip code in that case. The loop will continue to execute as long as the user enters bad zip codes. Once they enter a good zip code the progam will display Thank you. The first line of code that asks for the zip code is below. You don't have to write this line, only the loop that comes after it.

Answers

Answer:

The program in Python is as follows:

zipp = int(input("Zip Code: "))

while (zipp > 89049 or zipp < 501):

   print("Bad zip code")

   zipp = int(input("Zip Code: "))

   

print("Thank you")

Explanation:

This gets input for the zip code [The given first line is missing from the question. So I had to put mine]

zipp = int(input("Zip Code: "))

This loop is repeated until the user enters a zip code between 501 and 89049 (inclusive)

while (zipp > 89049 or zipp < 501):

This prints bad zip code

   print("Bad zip code")

This gets input for another zip code

   zipp = int(input("Zip Code: "))

   

This prints thank you when the loop is exited (i.e. when a valid zip code is entered)

print("Thank you")

Will mark brainliest

Answers

Answer:

1 a

2 d

3 c

4 a

Explanation:

Write a program second.cpp that takes in a sequence of integers, and prints the second largest number and the second smallest number. Note that in the case of repeated numbers, we really mean the second largest and smallest out of the distinct numbers (as seen in the examples below). You may only use the headers: and . Please have the output formatted exactly like the following examples: (the red is user input)

Answers

Answer:

The program in C++ is as follows:

#include <iostream>

#include <vector>

using namespace std;

int main(){

   int n;

   cout<<"Elements: ";

   cin>>n;

   vector <int>num;

   int input;

   for (int i = 1; i <= n; i++){        cin>>input;        num.push_back(input);    }

   int large, seclarge;

   large = num.at(0);      seclarge = num.at(1);

  if(num.at(0)<num.at(1)){     large = num.at(1);  seclarge = num.at(0);   }

  for (int i = 2; i< n ; i ++) {

     if (num.at(i) > large) {

        seclarge = large;;

        large = num.at(i);

     }

     else if (num.at(i) > seclarge && num.at(i) != large) {

        seclarge = num.at(i);

     }

  }

  cout<<"Second Largest: "<<seclarge<<endl;

  int small, secsmall;

  small = num.at(1);       secsmall = num.at(0);

  if(num.at(0)<num.at(1)){ small = num.at(0);  secsmall = num.at(1);   }

  for(int i=0; i<n; i++) {

     if(small>num.at(i)) {  

        secsmall = small;

        small = num.at(i);

     }

     else if(num.at(i) < secsmall){

        secsmall = num.at(i);

     }

  }

  cout<<"Second Smallest: "<<secsmall;

  return 0;

}

Explanation:

See attachment for explanation

A form of payment that is guaranteed to be as good as cash is a

Answers

Answer:

bank check

A bank check, more commonly known as cashier's check, is a payment order which is issued against the bank's fund rather than any individual account holder's deposit with the bank.

plsssssss mark me brianliest

it is a group of two or more computer system connect to each other​

Answers

network is a group of two or more computer system connected together

Plzz help will mark brainliest

Answers

Answer:

11. 3 dimensions

12. ( i believe its number 3)

13. 2 option

14. Natural Light

15. Development

Explanation:

PLZ ANSWER WORTH 20 POINTS!! URGENT!

To use Office 365 and
OneDrive, you need ____.

A. to pay for online storage space

B. the latest version of Microsoft Office on your device

C. a registered Microsoft account

D. be logged on a school computer
Spring 2021 Post TLC CA

Answers

Answer:

C. a registered Microsoft Account

Answer:

B:the latest version of Microsoft Office on your device

Explanation:

I got it from the internet.

Which of the following is primarily operated by a touchscreen?
Mobile device
Notebook
Desktop
Network

Answers

Answer: The correct answer is Mobile device

Explanation:

A Mobile device is any portable equipment that can be easily connected to an internet. Example of mobile devices include; smart phones, palmtop, smart watch and other computer gadgets. The use of touchscreen for input or output on mobile devices can not be overemphasized. Mobile devices are handy and can be used for making work easy. As such, in order to effectively use mobile devices, touchscreen can be primarily used.

how do social media platform affect the social skills of your children ​

Answers

Answer:

Poor Impersonal Skills :(

Explanation:

Kids who spend their whole day on social media platforms may consider their virtual relation as a substitute for real ones. like cmon man

This may deteriorate the behavioral habits of kids Really dangerous

BUT Social media cqan also give kids more opportunities to communicate and practice social skills.  so ye

HELP ASAP WILL MARK BRAINLIEST

Answers

Answer:

C, C, D, B

Explanation:

Trade Periodicals are usually highly scholarly resources
True

False

Answers

Answer:

False

Explanation:

Trade publications may be written by experts in a certain industry, but they are not considered scholarly, as they share general news, trends, and opinions, rather than advanced research, and are not peer-reviewed.

Draw an ERD for the following problem with attributes, primary keys, cardinalities and participation constraints and specialization, if appropriate.
An information studies student wants to keep track of the following information. A publishers publishes two kinds of publications: books and journals. Any one publisher publishes at least one book and/or at least one journal. Each book can be written by one or more authors and one author can write one or more books. Each book and journal is characterized by one or more indexed keywords, which are represented by a keyword number and keyword. Not every keyword is used by the journals, however. Both books and journals have a unique number (such as ISBN# for a book and ISSN# for a journal), title and a publisher. For books, the student tracks the published year, all author information and their institutions. For journals, the student keeps the starting year first published, the number of issues to be published per year and the category of the journal (such as academic, newsletter, trade). Each publisher has name, address and phone.Each author has an ID number, name, address, phone, author's affiliated institution and the address of the institution. An author may be affiliated with more than one institution.The student would like to keep only authors who are participating in writing at least one book and institutions that have such authors.

Answers

Answer:

Following are the solution to the given question:

Explanation:

Ellipses are the attributes.Rectangle entities are shown.Rhombus is the relationship.The double rectangle is the weak entity.Is-A is a triangle relationship.

There has to be N: N between books and authors because one writer can write one or more books, and one or more writers can read each book.

The N: N eigenvalues also exist among authors or students as Authors who participate in the creation of one or more books and organizations with these writers will keep their tracking of them.

When typing using the number row, your ___________________ is the proper finger to key the "6" key.

Answers

Answer:

your left pointer finger

Explanation:

Answer:

Your pointer finger, on ur left hand

Explanation:

True or false? A process flow diagram is used to identify the steps an employee takes to complete a job

Answers

the answer is false because……….
Other Questions
write down the value of the 6 in the number 2693 Explain this term as related to fossils.inference What is the verb in the mother gave the daughter a rose Which of the following statements is INCORRECT?please help me this assignment is overdue A historian could BEST use both sources together to support which of the following claims? a) Agricultural abundance from maize cultivation permitted the development of a warrior class that conquered neighboring territories b) Domesticated maize eventually produced an agricultural surplus that allowed labor specialization including artisans c) Harnessing the energy of domesticated animals allowed Olmec artisans to transport massive basalt boulders d) Surplus food allowed Olmec rulers to create an empire by conquering surrounding states In triangle ABC, if angle A measures 78 and angle B measures 63, what is the measure of angle C? plzzzzzz help for a brainly Two figures are similar with a scale factor of 5/2.a. What is the ratio of corresponding lengths?b. What is the ratio of their perimeters?c. What is the ratio of their areas?d. What is the ratio of their volumes?e. What is the ratio of corresponding angle measures? I WILL GIVE BRAINLIEST + LIKE + 5 STARS if you answer this short easy algebra question!!!!!! Hi!! whats 3+3? :P ..... NEED HELP WHATS THE LOCATION Identify this quadrilateral. Please help me fill in the blanks! Consider the solid S described below. The base of S is the triangular region with vertices (0, 0), (4, 0), and (0, 4). Cross-sections perpendicular to the x-axis are squares. Find the volume V of this solid. Yo _____ ocho horas.durmidormdormaduermo 1) Solve for Side A.2) Solve for Angle B. hello please help ill give brainliest How is weather ,climate , and biodiversity on earth interconnected? what is this answer Zoe had [tex]\frac{1}{3}[/tex] bag of cookies left. She needed to share it with 2 of her friends