Skip to content
  • 0 Votes
    4 Posts
    2k Views
    zareenZ
    @zareen said in CS411 Assignment 3 Solution and Discussion: threadpool public static class ThreadPool Examples using System; using System.Threading; public class Example { public static void Main() { // Queue the task. ThreadPool.QueueUserWorkItem(ThreadProc); Console.WriteLine("Main thread does some work, then sleeps."); Thread.Sleep(1000); Console.WriteLine("Main thread exits."); } // This thread procedure performs the task. static void ThreadProc(Object stateInfo) { // No state object was passed to QueueUserWorkItem, so stateInfo is null. Console.WriteLine("Hello from the thread pool."); } } // The example displays output like the following: // Main thread does some work, then sleeps. // Hello from the thread pool. // Main thread exits. void WaitCallback(Object state) Source
  • 0 Votes
    6 Posts
    2k Views
    zareenZ
    @zareen said in CS315 Assignment 2 Solution and Discussion: b) Number of keys being used for cryptography. Although symmetric key cryptography makes use of only one key, asymmetric key cryptography, also known as public key cryptography, utilizes two keys: a public key and a private key. The public key is used to encrypt data sent from the sender to the receiver and is shared with everyone. Public and Private Key Concept in Encryption Secret key cryptography (symmetrical encryption): Both the sender and receiver must use the same key to encrypt and decrypt messages being sent. This imposes a security risk as we need to deliver the key to the recipient of the message in a secure way to make him/her able to decrypt the message. If an intruder gets hold of the key somehow, he/she will be able to decrypt the secret message and thus compromise the whole operation. Public key cryptography (asymmetrical encryption): In this method we use two keys, one for encryption and the second for decryption. A user will use his/her friend’s public key to encrypt the message. The receiver will use a private key (which should be kept secret) in order to decrypt this message when needed. The public key is used to encrypt plain text or to verify a digital signature, whereas the private key is used to decrypt cipher text or to create a digital signature. Messages encrypted with the public key can only be decrypted using the associated private key pair. Source
  • 0 Votes
    6 Posts
    2k Views
    zareenZ
    @zareen said in CS315 Assignment 3 Solution and Discussion: User run IDM (Internet Download Manager) application in the system then instead of execution, it creates multiple files in different portions of hard disk. Unlike the biological viruses that cause the common cold, people create … Despite the many variations of viruses, most have two phases to their execution: infection and delivery. … the Calculator, Notepad, Help, and other programs on the hard disk. The virus then scans the computer to locate .exe files on other drives and … Reff
  • 0 Votes
    2 Posts
    907 Views
    zareenZ
    Ideas Solution!
  • 0 Votes
    2 Posts
    452 Views
    zareenZ
    Idea Solution Please!
  • 0 Votes
    1 Posts
    144 Views
    No one has replied
  • 0 Votes
    2 Posts
    327 Views
    zareenZ
    @zareen Ideas Solution!
  • 0 Votes
    33 Posts
    23k Views
    zaasmiZ
    @zainab-ayub said in MTH603 Quiz 2 Solution and Discussion: Mth603 ka koi student hai tu plz yeh question bta dy kis trha solve ho ga Given the following data x:1 2 5 y:1 4 10 Value of 1st order divided difference f[2 , 5] is [image: JgeUzkI.png]
  • 0 Votes
    2 Posts
    565 Views
    zareenZ
    Please share Idea Solution:
  • 0 Votes
    2 Posts
    543 Views
    zareenZ
    Solution: Maslow’s hierarchy of needs. Physiological needs Safety Needs (what kind of safety you need) Love/Belongingness Esteem Self- actualization 1 Air Shelter, health and safety of property Intimacy with siblings Self confidence Realize personal potential 2 Food, drink Employment safety Intimacy with Coworkers, colleagues Achievement Morality, self- fulfillment 3 Clothing Freedom from fear Intimacy with parents Recognition, prestige Creativity Problem solving 4 Sleep Law and order safety Intimacy with friends Respect, status Pursue talent Students answer may vary as per their own hierarchal needs.
  • 0 Votes
    1 Posts
    310 Views
    No one has replied
  • 0 Votes
    2 Posts
    703 Views
    zareenZ
    Q. 1 Assignment Solution: Background Feminism is an organized social and political movement that promotes gender equality. The feminist focuses on analyzing the society in terms of the social position of women and how to improve it so that women can gain equality with men. Feminism has developed in various historical stages/phases which are called the waves of feminism. The historical development of feminism has been divided into three waves. • First Wave • Second Wave • Third Wave Sr. No Waves of Feminism Examples at Micro Level Examples at Macro Level 1. First Wave Right to Divorce: In Pakistan a wife can take Khulla and Divorce from her husband. Right to Education: In Pakistan there is sizeable gender gap in higher education for women. According to the 2011 Human Development Report of the United Nations Development Program, approximately twice as many males as females receive a secondary education in Pakistan. An example of Malala Yousaf Zai who was shot in the head and neck by Taliban insurgents after she had blogged about the destruction and closing of all-girls schools in her town of Swat. Right to vote: Female voters in KPK were prohibited to cast vote according to an old tradition. Even many women’s doesn’t have a CNIC in KPK. 2. Second Wave Reproductive Health Rights: In many rural areas of Pakistan woman are unable to make decisions about their own reproductive health care. Laws for Equal Pay: The Pakistani textile industry is the largest gender-pay gaps industry, resulting in 93 per cent of female textile workers making less than minimum wage.Laws against Domestic Violence: Despite the existence of laws many cases are found of domestic violence. For example, a married woman suffered burn wounds in an acid attack by her husband in Karachi. 3. Third Wave Issue of Gender Transformation / Multiple Realities: In Pakistan the issues of multiple realities are prevailing now days. It is difficult to recognize that who is real woman. For example an individual who were born as male but was uncomfortable in his male body and transformed into female. Derogatory Language: The criticism on sexist and derogatory language against girls and women and new self- celebrating words and forms were invented. For example, the use of the word “Humankind” instead of “Mankind” and also “Chairperson” instead of “Chairman”. Q2. Exemplify a situation from Muslim World in which any feminist issue was raised and then addressed. (5 marks) Answer: Drive Movement: In Saudi Arabia drive movement was raised in twenty-first century and in 2017, King Salman issued an order to allow women to drive in Saudi Arabia, with new guidelines to be created and implemented by June 2018. Therefore, women’s issue of right to drive was addressed. Anti-male Guardianship: In Saudi Arabia anti male-guardianship campaign was launched and in 2017 King Salman had passed an order allowing women to obtain government services such as education and health care without the need of permission from a guardian.
  • 0 Votes
    1 Posts
    346 Views
    No one has replied
  • 0 Votes
    2 Posts
    662 Views
    zareenZ
    Q. 1 Solution: Perspectives Level of Orientation Prominent theorists (any two ) Basic assumptions/ideas(any two) Functionalism Macro Talcott Parsons Rober K. Merton 1. The general interrelatedness or interdependence of the system’s parts; 2. The existence of “normal” state of affairs, or state of equilibrium, comparable to the normal or healthy state of the organism; and 3. The way that all parts of the system reorganize to bring things back to normal Conflict Macro Karl Marx Max Weber 1. People have number of basic “interests,” things they want and attempt to acquire. Common to all. Nothing specified. 2.Power is the core of social relationships. 3.Values and ideas are seen as weapons used by different groups to advance their own ends rather than as means of defining a whole society’s identity and goals. Social Exchange/Rational Choice Micro and Macro George Homans Peter Blau 1. People more or less act rationally and on the bases of their interests. 2. Rewarding exchange of interactions are repeated. 3. Reward can be basis for rational choice. 4. Continual exchange of actions makes people conditioned. 5. Emergence of patterns of social exchange . 6. Enables sociologists to predict patterns of behavior on both small and large scales. Interactionism , i. Phenomenology, ii. Ethnomethodology Micro George Mead Herbert Blumer, i. Alfred Schutz, ii. H. Garfinkel 1. Emphasis on face to face interaction of humans rather than on the working of the social system as an abstract entity. 2. Emphasis on meanings rather than functions i.e. sociology has to be an interpretive science. 3. Emphasis on lived experience rather than an abstracted concept of society. Focus on the way human agents experience regularized patterns of social interaction, and support them. Question: Explain the ways that your micro-level social world of relations with family and friends is influenced by macro-level structures or cultural influences of the wider environment? 04 Solution: The structures and patterns of the macro-level social world help constrain and shape our behavior through “micro” system in which we are involved. This mutual interdependence of individuals’ micro-level social actions and macro-level social structures is particularly important in analyzing recurrent or general patterns of behavior that are widespread throughout society. Such patterns can be analyzed independently of particular individuals in their local contexts. For example, sociologists or social theorists may be interested in explaining how changing birth rates may be related to the state of the economy or general cultural attitudes toward children, even though individual decisions to have or not to have children will reflect personal choices that are not at all oriented consciously toward trends in birth rates or the overall state of the economy or the culture. Similarly, social theorists may seek to understand patterns of upward or downward socioeconomic mobility in a society without reference to particular individuals who are trying to “get ahead” or “get by” in terms of their own personal well-being. From the standpoint of particular individuals in their local settings, the overall structures and dominant cultural patterns of a society may be taken as background or context, and their primary focus is the specific situation in which they find themselves. However, to understand society itself, sociological analysis at the macro level must focus on the major institutions of society as well as differences among people such as those based on social class, race/ethnicity, gender, or age. This means that our analyses of major institutional structures must be linked with an understanding of how individuals are stratified into various socioeconomic classes and numerous other categories that distinguish them from one another.
  • 0 Votes
    1 Posts
    297 Views
    No one has replied
  • 0 Votes
    5 Posts
    1k Views
    zareenZ
    Type of organization Name of selected organization Mission statement/objective of organization Services provided by selected organization Utilitarian organization Nestlé Good Food, Good Life that is what we stand for • Food services: reducing sugar, sodium and fat • Healthcare nutrition to live healthier lives• Bottled water: Effective water treatment Normative organization Pakistan Red Crescent (PRC) To alleviate the suffering of the most vulnerable population by mobilizing the power of humanity. • Disaster management • Community Based Health & First Aid • Emergency ambulance services Coercive organization Lahore Psychiatric Hospital To make people understand the mental disorders prevailing in country and guide them in the right direction for proper and safe treatment. • Drug addiction• Deals in all types of mental, psychological and muscular disorders • Sexual disorders Organizations may vary, it is a sample solution. References: link 1 link 2 link 3
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

0

Online

3.0k

Users

2.8k

Topics

8.5k

Posts
Popular Tags
Online User
| |