Notes, summaries, assignments, exams, and problems for University

Sort by
Subject
Level

Multi-Threaded TCP Game Server Implementation

Classified in Computers

Written on in English with a size of 1.34 KB

Clientes ligam-se a servidor por TCP para jogarem. Pode ter entre 20 a 30 jogadores, de preferência 30, mas se jogador esperar mais de 1 minuto a partida começa com pelo menos 20. O jogador envia o nome ao servidor e fica à espera que o jogo comece e nessa altura é informado dos nomes dos outros.
1. Apresentar uma classe que implementa a interface em que os métodos têm que ser invocados em multi-thread.
Interface Jogo { List inscrever(String nome);}
public class Cliente {
public Cliente(Socket s) throws Exception {
PrintWriter pw = new PrintWriter(s.getOutputStream(), true);
BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));
BufferedReader terminal = new BufferedReader(new InputStreamReader(System.in))
... Continue reading "Multi-Threaded TCP Game Server Implementation" »

Rhyme scheme of rima liii

Classified in English

Written on in English with a size of 2.66 KB

The Prologue- POEM

By Anne Bradstreet-1650 

-allusions to Greeks, Christianity, feminism...

-light-hearted tone. Critical of those who restrict women’s role. Humble, critic angry tone. 

-better with needle” even she writes something worthy critics will say is copied or luck 

-humility 

-verse, 8 stanzas, iambic pentameter ABABCC-daDum da Dum x5

-metaphors “the pen” & metonymy (big idea by referring to one small part)

-symbols: needle, war, tongue 

   Tongue: metonymy=power of speech 

-Purpose: role as female in a male-dominated Puritan society 


To my dear and loving husband-POEM

Anne Bradstreet-1650 “Selected Poems” 

-iambic pentameter 

-rhyme scheme: AABBCCDD*EEFF. This is rhyming COUPLES. 

-“Ever” 4 times in the poem, in... Continue reading "Rhyme scheme of rima liii" »

Vocabulary and Key Terms for Technological and Environmental Studies

Classified in Geography

Written on in English with a size of 1.15 KB

VOCABULARY

UNIT 1

  • Technological park
  • Global warming
  • Outskirts of the city
  • Rainforests
  • Young people
  • Glaciers
  • Pedestrianised area
  • Sea ice
  • Quality of life
  • Sea levels
  • New Projects
  • Coral reefs
  • Temperature
  • Drought
  • Extreme weather

UNIT 2

  • Gateways
  • Bottle
  • Box
  • Tin
  • Carton
  • Jar
  • Packet
  • Pot
  • Tube
  • Aluminium
  • Cardboard
  • Glass
  • Metal
  • Paper
  • Plastic

UNIT 3

  • International hub
  • Specialised pole
  • Regional pole
  • Established capitals
  • Re-invented capitals
  • Knowledge hubs
  • Profit
  • Unemployment
  • Poverty
  • Famine
  • War social situation
  • Common sense
  • Writing lines
  • Detention
  • Exclusion
  • Swearing
  • Suspension
  • Hitting
  • Not doing homework
  • Bullying

A habit

Skill

A reminder

To delete

Terrible

To divide

A backup

Linux Process Management: Deep Dive into Kernel Internals

Classified in Computers

Written on in English with a size of 27.36 KB

What is a Process?

A process is essentially a program in execution.

Lightweight Processes in Linux

Lightweight Processes (LWPs) in Linux are processes that offer better support for multithreaded applications.

Multithreaded Applications in Linux

A multithreaded application is designed to perform multiple tasks concurrently within a single process. In Linux, a straightforward way to implement multithreaded applications is to associate a lightweight process with each thread.

This approach allows threads to access the same set of application data structures by simply sharing the same memory address space, the same set of open files, and so on. Simultaneously, each thread can be scheduled independently by the kernel, meaning one thread may sleep while... Continue reading "Linux Process Management: Deep Dive into Kernel Internals" »

Behavior Measurement & Reinforcement Principles

Classified in Psychology and Sociology

Written on in English with a size of 6.48 KB

Behavioral Measurement Techniques

Understanding and accurately measuring behavior is fundamental in behavior analysis. These techniques allow for systematic data collection and analysis.

Continuous Measurement

Continuous measurement involves recording every instance of a behavior as it occurs over time, providing a complete picture of its occurrence.

  • Frequency

    The total count of how many times a behavior occurred. Example: A client left their seat 5 times.

  • Rate

    The ratio of the count of a behavior per observation time. Example: 4 kicks per 5 minutes equals 0.80 kicks per minute, or 80%.

  • Duration (Temporal Extent)

    The total extent of time a behavior occurs. Example: Adding the seconds of total extent (35+26+24+65+30) equals 180 seconds, which is 3 minutes.

... Continue reading "Behavior Measurement & Reinforcement Principles" »

Understanding Climographs: A Guide to Climate Analysis

Classified in Other subjects

Written on in English with a size of 2.27 KB

The graphic is a Climograph, a double entry graph that registers the average monthly temperatures through a red line for the scale of degrees centigrade (ºC) on the right; and the total average monthly precipitation by a bars graph in mm* in the scale on the left. According to the usual conventions, both scales are in a 2:1 ratio**, which allows to visualize easier the drier months.

The yearly average annual temperature is ………….. The average monthly temperature belongs to the month of …………….., with approximately ……….. ºC. Such data indicates that, the graphic’s clima is located in the Northern hemisphere, also with a hot/warm summer. The coldest month is ……… with ……….. ºC, which means a mild summer. According... Continue reading "Understanding Climographs: A Guide to Climate Analysis" »

European Union Institutions: Roles, Members, and History

Classified in Social sciences

Written on in English with a size of 3.39 KB

Key Institutions of the European Union

European Parliament

  • Role: A body of the European Union elected by direct universal suffrage, with legislative, budgetary, and supervisory powers.
  • Members: 751 Members of the European Parliament (MEPs).
  • President: Antonio Tajani.
  • Established:
    • 1952 as the Common Assembly of the European Coal and Steel Community.
    • 1962 as the European Parliament (first direct elections in 1979).
  • Seats: Strasbourg (France), Brussels (Belgium), and Luxembourg (Luxembourg).

European Council

  • Role: Defines the main orientations and political priorities of the European Union.
  • Members: The Heads of State and Government of the EU Member States, the President of the European Commission, and the High Representative of the Union for Foreign Affairs
... Continue reading "European Union Institutions: Roles, Members, and History" »

Accounting Concepts and Calculations: A Comprehensive Guide

Classified in Latin

Written on in English with a size of 2.49 KB

Accounting Concepts and Calculations

1. Income Statement

  • Gross Sales: Total sales before any deductions.
  • Returns: Deducted from gross sales to calculate net sales.
  • Cash Discounts: Deducted from gross sales to calculate net sales.
  • Net Sales: Gross sales minus returns and cash discounts.
  • Cost of Goods Sold (COGS): The cost of the goods sold during the period.
  • Other Expenses: Expenses not related to COGS.
  • Profit Before Tax: Net sales minus COGS and other expenses.
  • Tax Expense: Taxes owed on profit before tax.
  • Net Income: Profit before tax minus tax expense.

2. Balance Sheet

  • Accounts Receivable: Money owed to the company by customers for goods or services sold on credit.
  • Allowance for Doubtful Accounts (ADA): An estimate of the amount of accounts receivable
... Continue reading "Accounting Concepts and Calculations: A Comprehensive Guide" »

Pricing Strategies: Understanding Value, Costs, and Competition

Classified in Economy

Written on in English with a size of 3.19 KB

Introduction

Price is the sum of all the values that customers give up to gain the benefits of acquiring or using a product. It is one of the most flexible elements of the marketing mix, as prices can be changed quickly.

Importance and Impact of Price

Price has a major impact on a firm's market share and profitability. Due to fixed costs, a small change in price can have a larger impact on profit.

In recent years, the Great Recession and the internet have made it easier for consumers to compare offers, leading to more frugal and conscious spending habits.

Cutting Prices: Not Always the Best Answer

Cutting prices is often not the best answer, as it can lead to lost profits, damaging price wars, and cheapening the brand.

Instead, companies should focus... Continue reading "Pricing Strategies: Understanding Value, Costs, and Competition" »

Product, Service, and Branding Essentials for Marketing Success

Classified in Economy

Written on in English with a size of 4.64 KB

Product Fundamentals in Marketing

Defining a Product

A product is a combination of both tangible and intangible components. As products become more commoditized, companies increasingly deliver value through customer experiences.

  • Core Customer Value: The main need fulfilled by the product.
  • Actual Product: Includes elements like brand name, quality level, and packaging.
  • Augmented Product: Encompasses additional services and benefits offered.

Product Classifications

Products can be categorized in various ways, including physical goods, services, events, and places. They are also broadly classified as consumer products or industrial products.

Consumer Products

These are products bought by final consumers for personal consumption. They are typically categorized... Continue reading "Product, Service, and Branding Essentials for Marketing Success" »